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)
commit23a9072e3af0d9538e25837fb2b56bb94e4a8e67
tree225d85e6ad2d380ce077a470dbf5a0a93e62ea62
parentb44540ea024b9280c9be9d055f084e0956bcfa44
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