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

2017-11-14 Thread Christina Jacob
On Thu, Nov 9, 2017 at 7:08 AM, Jesper Dangaard Brouer <bro...@redhat.com> wrote: > On Wed, 08 Nov 2017 10:40:24 +0900 (KST) > David Miller <da...@davemloft.net> wrote: > >> From: Christina Jacob <christina.jacob.koik...@gmail.com> >> Date: Sun, 5 Nov 2017

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

2017-11-14 Thread Christina Jacob
On Thu, Nov 9, 2017 at 7:08 AM, Jesper Dangaard Brouer wrote: > On Wed, 08 Nov 2017 10:40:24 +0900 (KST) > David Miller wrote: > >> From: Christina Jacob >> Date: Sun, 5 Nov 2017 08:52:30 +0530 >> >> > From: Christina Jacob >> > >> > Imple

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

2017-11-04 Thread Christina Jacob
From: Christina Jacob <christina.ja...@cavium.com> 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: Christina Jacob <christina.ja...@cavium.com> --- samples/

[PATCH v4 0/1] XDP program for ip forward

2017-11-04 Thread Christina Jacob
From: Christina Jacob <christina.ja...@cavium.com> The patch below implements port to port forwarding through route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. This has an improved performance over the normal kernel stack ip f

[PATCH v4 0/1] XDP program for ip forward

2017-11-04 Thread Christina Jacob
From: Christina Jacob The patch below implements port to port forwarding through route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. This has an improved performance over the normal kernel stack ip forward. Implementation details

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

2017-11-04 Thread Christina Jacob
From: Christina Jacob 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: Christina Jacob --- samples/bpf/Makefile | 4 + samples/bpf/xdp_router_ipv4_kern.c | 186

[PATCH v3 0/1] XDP program for ip forward

2017-11-01 Thread Christina Jacob
anymore. 4. Fixed returning address of local variable. Christina Jacob (1): xdp: Sample xdp program implementing ip forward samples/bpf/Makefile | 4 + samples/bpf/xdp_router_ipv4_kern.c | 181 ++ samples/bpf/xdp_router_ipv4_user.c

[PATCH v3 0/1] XDP program for ip forward

2017-11-01 Thread Christina Jacob
anymore. 4. Fixed returning address of local variable. Christina Jacob (1): xdp: Sample xdp program implementing ip forward samples/bpf/Makefile | 4 + samples/bpf/xdp_router_ipv4_kern.c | 181 ++ samples/bpf/xdp_router_ipv4_user.c

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

2017-11-01 Thread Christina Jacob
From: Christina Jacob <christina.ja...@cavium.com> 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: Christina Jacob <christina.ja...@cavium.com> --- samples/

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

2017-11-01 Thread Christina Jacob
From: Christina Jacob 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: Christina Jacob --- samples/bpf/Makefile | 4 + samples/bpf/xdp_router_ipv4_kern.c | 181

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-28 Thread Christina Jacob
On Wed, Oct 11, 2017 at 3:07 AM, David Daney <dda...@caviumnetworks.com> wrote: > On 10/10/2017 10:19 AM, Stephen Hemminger wrote: >> >> On Tue, 10 Oct 2017 12:58:52 +0530 >> Christina Jacob <christina.jacob.koik...@gmail.com> wrote: >> >>> +/* Get

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-28 Thread Christina Jacob
On Wed, Oct 11, 2017 at 3:07 AM, David Daney wrote: > On 10/10/2017 10:19 AM, Stephen Hemminger wrote: >> >> On Tue, 10 Oct 2017 12:58:52 +0530 >> Christina Jacob wrote: >> >>> +/* Get the mac address of the interface given interface name */

Re: [PATCH v2] XDP Program for Ip forward

2017-10-11 Thread Christina Jacob
On Tue, Oct 10, 2017 at 7:30 PM, Jesper Dangaard Brouer wrote: > > On Tue, 10 Oct 2017 15:12:31 +0200 > Jesper Dangaard Brouer wrote: > > > I'll try to test/benchmark your program... > > In my initial testing, I cannot get this to work... > What is the test

Re: [PATCH v2] XDP Program for Ip forward

2017-10-11 Thread Christina Jacob
On Tue, Oct 10, 2017 at 7:30 PM, Jesper Dangaard Brouer wrote: > > On Tue, 10 Oct 2017 15:12:31 +0200 > Jesper Dangaard Brouer wrote: > > > I'll try to test/benchmark your program... > > In my initial testing, I cannot get this to work... > What is the test setup you are using? So that I can

[PATCH v2] XDP Program for Ip forward

2017-10-10 Thread Christina Jacob
. * Corrected the copyright issue pointed out by David Ahern * Fixed the bug: The already attached interfaces are not detached from the xdp program if the program fails to attach to an interface later in the list. Christina Jacob (1): xdp: Sample xdp program implementing ip forward samples

[PATCH v2] XDP Program for Ip forward

2017-10-10 Thread Christina Jacob
. * Corrected the copyright issue pointed out by David Ahern * Fixed the bug: The already attached interfaces are not detached from the xdp program if the program fails to attach to an interface later in the list. Christina Jacob (1): xdp: Sample xdp program implementing ip forward samples

[PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread Christina Jacob
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: Christina Jacob <christina.ja...@cavium.com> --- samples/bpf/Makefile |4 + samples/bpf/xdp_router_ipv4_kern.c

[PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread Christina Jacob
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: Christina Jacob --- samples/bpf/Makefile |4 + samples/bpf/xdp_router_ipv4_kern.c | 189 +++ samples/bpf