]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix psock_fanout selftest hash collision
authorWillem de Bruijn <willemb@google.com>
Tue, 19 Mar 2013 20:42:44 +0000 (20:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 16:33:18 +0000 (12:33 -0400)
commit41d35e1340f6c39b9ac83b666d116e3def6151b9
tree225d85e6ad2d380ce077a470dbf5a0a93e62ea62
parent4663e9869e851026cd037d09fc7426dda75558d9
net: fix psock_fanout selftest hash collision

Fix flaky results with PACKET_FANOUT_HASH depending on whether the
two flows hash into the same packet socket or not.

Also adds tests for PACKET_FANOUT_LB and PACKET_FANOUT_CPU and
replaces the counting method with a packet ring.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net-afpacket/psock_fanout.c