selftests/net: add tests for PACKET_FANOUT_FLAG_UNIQUEID
authorMike Maloney <maloney@google.com>
Fri, 21 Apr 2017 14:56:12 +0000 (10:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 16:46:16 +0000 (12:46 -0400)
commit28be04f5c1c95bdf5614af19f7faf7d4fb781fa6
tree34e3d06d74fadf19d137e48d674d4df77a55fe2a
parent4a69a864209e9ab436d4a58e8028ac96cc873d15
selftests/net: add tests for PACKET_FANOUT_FLAG_UNIQUEID

Create two groups with PACKET_FANOUT_FLAG_UNIQUEID, add a socket to one.
Ensure that the groups can only be joined if all options are consistent
with the original except for this flag.

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