| To: | bonding-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, tony.cureington@xxxxxx |
|---|---|
| Subject: | RE: [Bonding-devel] [PATCH] [bonding 2.6] Add balance-xor-ip bonding mode |
| From: | Per Hedeland <per@xxxxxxxxxxxx> |
| Date: | Thu, 8 Jan 2004 17:58:33 +0100 (CET) |
| In-reply-to: | <72A87F7160C0994D8C5A36E2FDC227F502B3E9BE@txnexc01.americas.cpqcorp.net> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
"Cureington, Tony" <tony.cureington@xxxxxx> wrote: > >I'm curious of the reasoning behind "u ^= (u >> 24) ^ (u >> 16) ^ (u >> 8);", >what advantages does it have over using the xor'd addresses just before this >line? Maybe someone loaded decaf on me this morning? :-/ The idea is to take all octets of the addresses into account (similar logic is already used in bond_alb.c btw). E.g. if the number of slaves is a power of 2 (2 or 4 is probably very common), a full_address % num_slaves operation will effectively only use one octet (happens to be the first one on x86, which is probably the worst choice, but of course that could be compensated for). Or am I missing something? --Per Hedeland per@xxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][ATM]: br2684 incorrectly handles frames recvd with FCS (by Alex Zeffertt <ajz@cambridgebroadband.com>), contractor |
|---|---|
| Next by Date: | [PATCH 1/4] [bonding 2.6] Add bonding ioctl hook, Amir Noam |
| Previous by Thread: | RE: [Bonding-devel] [PATCH] [bonding 2.6] Add balance-xor-ip bonding mode, Cureington, Tony |
| Next by Thread: | [bonding] Add basic support for dynamic configuration of bond interfaces, Amir Noam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |