linux_old1/tools/testing/selftests/net
Craig Gallek 1134158ba3 soreuseport: pass skb to secondary UDP socket lookup
This socket-lookup path did not pass along the skb in question
in my original BPF-based socket selection patch.  The skb in the
udpN_lib_lookup2 path can be used for BPF-based socket selection just
like it is in the 'traditional' udpN_lib_lookup path.

udpN_lib_lookup2 kicks in when there are greater than 10 sockets in
the same hlist slot.  Coincidentally, I chose 10 sockets per
reuseport group in my functional test, so the lookup2 path was not
excersised. This adds an additional set of tests with 20 sockets.

Fixes: 538950a1b7 ("soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF")
Fixes: 3ca8e40299 ("soreuseport: BPF selection functional test")
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-06 01:28:04 -05:00
..
.gitignore soreuseport: BPF selection functional test 2016-01-04 22:49:59 -05:00
Makefile soreuseport: BPF selection functional test 2016-01-04 22:49:59 -05:00
psock_fanout.c selftests/net: test extended BPF fanout mode 2015-08-17 14:22:48 -07:00
psock_lib.h selftests/net: test classic bpf fanout mode 2015-08-17 14:22:48 -07:00
psock_tpacket.c tools: selftests: psock_tpacket: get rid of macro wrappers 2013-07-02 00:23:57 -07:00
reuseport_bpf.c soreuseport: pass skb to secondary UDP socket lookup 2016-01-06 01:28:04 -05:00
run_afpackettests selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
run_netsocktests selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
socket.c
test_bpf.sh selftests/net: move test out of Makefile into a shell script 2014-11-05 08:12:40 -07:00