]> git.baikalelectronics.ru Git - kernel.git/commit
soreuseport: BPF selection functional test for TCP
authorCraig Gallek <kraig@google.com>
Wed, 10 Feb 2016 16:50:41 +0000 (11:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 08:54:15 +0000 (03:54 -0500)
commit062d1abce4ebc80278fe17c8d5abccb6f764a865
tree2764c897bbba3f7604ce942dbe62d17352036d58
parent0f66db96d4c33284192f7397e3c9b612242ea05e
soreuseport: BPF selection functional test for TCP

Unfortunately the existing test relied on packet payload in order to
map incoming packets to sockets.  In order to get this to work with TCP,
TCP_FASTOPEN needed to be used.

Since the fast open path is slightly different than the standard TCP path,
I created a second test which sends to reuseport group members based
on receiving cpu core id.  This will probably serve as a better
real-world example use as well.

Signed-off-by: Craig Gallek <kraig@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/reuseport_bpf.c
tools/testing/selftests/net/reuseport_bpf_cpu.c [new file with mode: 0644]