3ca8e40299
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>
20 lines
339 B
Makefile
20 lines
339 B
Makefile
# Makefile for net selftests
|
|
|
|
CFLAGS = -Wall -O2 -g
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
NET_PROGS = socket psock_fanout psock_tpacket reuseport_bpf
|
|
|
|
all: $(NET_PROGS)
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
|
|
TEST_FILES := $(NET_PROGS)
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
$(RM) $(NET_PROGS)
|