]> 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)
commitc902974ba683e246bc4af04373addb9e136a9133
tree2764c897bbba3f7604ce942dbe62d17352036d58
parent74fabcafc8b7684cf834f65fdac8b6a52d8c3284
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]