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)
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>

No differences found