From 089f85694afe59d90862a3cec01c060fd050815a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 9 Aug 2017 08:33:11 -0700 Subject: [PATCH 1/2] lib: need to pass LIBMNL flag Missed on earlier conversion. Signed-off-by: Stephen Hemminger --- lib/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Makefile b/lib/Makefile index 1d24ca24..637fe487 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -4,6 +4,10 @@ ifeq ($(IP_CONFIG_SETNS),y) CFLAGS += -DHAVE_SETNS endif +ifeq ($(HAVE_MNL),y) + CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags) +endif + CFLAGS += -fPIC UTILOBJ = utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o \ From 4a340fe9b4f789cd3841826d26522c79e467e3e3 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Wed, 9 Aug 2017 05:39:07 +0200 Subject: [PATCH 2/2] examples/bpf: update list of examples Remove deleted examples and add the new map in map example. Signed-off-by: Alexander Alemayhu Acked-by: Daniel Borkmann --- examples/bpf/README | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/bpf/README b/examples/bpf/README index 42472578..1bbdda3f 100644 --- a/examples/bpf/README +++ b/examples/bpf/README @@ -1,13 +1,8 @@ eBPF toy code examples (running in kernel) to familiarize yourself with syntax and features: - - bpf_prog.c -> Classifier examples with using maps - bpf_shared.c -> Ingress/egress map sharing example - bpf_tailcall.c -> Using tail call chains - bpf_cyclic.c -> Simple cycle as tail calls - bpf_graft.c -> Demo on altering runtime behaviour - -User space code example: - - - bpf_agent.c -> Counterpart to bpf_prog.c for user - space to transfer/read out map data + - bpf_map_in_map.c -> Using map in map example