]> 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)
commit58e36ea2712bece7d8218f6c34aab696838c6d2d
tree225d85e6ad2d380ce077a470dbf5a0a93e62ea62
parentc65647110413984b8ffe99f1fb59d3036bde2258
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