Thread (4 messages) 4 messages, 3 authors, 2011-10-29

Re: [PATCH 1/2] bonding: Doesn't support IPv6

From: Michał Mirosław <hidden>
Date: 2011-10-29 07:55:50

2011/10/29 John [off-list ref]:
quoted hunk ↗ jump to hunk
--- a/drivers/net/bonding/bond_main.c   2011-04-19 11:18:48.000000000 -0700
+++ b/drivers/net/bonding/bond_main.c   2011-10-27 11:26:20.000000000 -0700
[...]
+               v6hash = (v6hash >> 16) ^ (v6hash >> 8) ^ v6hash;
This XORs in only 3 of 4 bytes, and assuming count > 256 (its unlikely
you have more than 256 slaves in bond) the most significant byte is
wasted. It should be:

v6hash ^= v6hash >> 16;
v6hash ^= v6hash >> 8;

Same for IPv4 part.

OTOH, if that was your intention, then the description in your mail was wrong.

Best Regards,
Michał Mirosław
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help