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

2017-10-09 Thread Jacob, Christina
@vger.kernel.org Cc: linux-ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; alexei.starovoi...@gmail.com Subject: Re: [PATCH 1/1] xdp: Sample xdp program implementing ip forward >On 10/03/2017 09:37 AM, cjacob wrote: >> Implements port to port forwarding with route table and

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

2017-10-03 Thread David Ahern
On 10/3/17 12:37 AM, cjacob wrote: > diff --git a/samples/bpf/xdp3_kern.c b/samples/bpf/xdp3_kern.c > new file mode 100644 > index 000..62d905d > --- /dev/null > +++ b/samples/bpf/xdp3_kern.c > @@ -0,0 +1,204 @@ > +/* Copyright (c) 2016 PLUMgrid 2016 PLUMgrid? > + * > + * This program is fre

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

2017-10-03 Thread Daniel Borkmann
On 10/03/2017 09:37 AM, cjacob wrote: 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 Thanks for the patch, just few minor comments below! Note, should be full name, e.g.:

[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 +