[PATCH 1/1] xdp: Sample xdp program implementing ip forward

2017-10-03 Thread cjacob
Implements port to port forwarding with route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. Signed-off-by: cjacob --- samples/bpf/Makefile|4 + samples/bpf/xdp3_kern.c | 204 +++ samples/bpf/xdp3_user.c | 649

[PATCH 0/1] XDP Program for Ip forward

2017-10-03 Thread cjacob
-rc3 kernel. cjacob (1): xdp: Sample xdp program implementing ip forward samples/bpf/Makefile|4 + samples/bpf/xdp3_kern.c | 204 +++ samples/bpf/xdp3_user.c | 649 +++ 3 files changed, 857 insertions(+), 0 deletions(-) create