Skip to content

Commit

Permalink
soreuseport: BPF selection functional test
Browse files Browse the repository at this point in the history
This program will build classic and extended BPF programs and
validate the socket selection logic when used with
SO_ATTACH_REUSEPORT_CBPF and SO_ATTACH_REUSEPORT_EBPF.

It also validates the re-programing flow and several edge cases.

Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Craig Gallek authored and David S. Miller committed Jan 5, 2016
1 parent 538950a commit 3ca8e40
Show file tree
Hide file tree
Showing 3 changed files with 469 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/testing/selftests/net/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
socket
psock_fanout
psock_tpacket
reuseport_bpf
2 changes: 1 addition & 1 deletion tools/testing/selftests/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CFLAGS = -Wall -O2 -g

CFLAGS += -I../../../../usr/include/

NET_PROGS = socket psock_fanout psock_tpacket
NET_PROGS = socket psock_fanout psock_tpacket reuseport_bpf

all: $(NET_PROGS)
%: %.c
Expand Down
Loading

0 comments on commit 3ca8e40

Please sign in to comment.