Thread (1 message) 1 message, 1 author, 2003-09-23

Re: Question about the hash used in XOR mode

From: Jay Vosburgh <hidden>
Date: 2003-09-23 20:31:32

slave_no = (data->h_dest[5]^slave->dev->dev_addr[5]) % bond->slave_cnt;
[...]
Is there a special meaning for XORing with a constant ?
Wouldn't it be the same is we did just:
slave_no = data->h_dest[5] % bond->slave_cnt;
	I asked Janice Girouard about this...  The theory is to mimic
the way Cisco etherchannel load balancing modes operate (in particular
I think the "src-dst-mac" mode).

	The Cisco 6000 series switch (and maybe others) documentation
shows the algorithm (in an example; it doesn't go into detail).

	-J

---
	-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help