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 als

Re: [PATCH v2] XDP Program for Ip forward

2017-10-10 Thread Jesper Dangaard Brouer
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... You do seem to XDP_REDIRECT out the right interface, but you have an error with setting the correct MAC address. -- Best regards,

Re: [PATCH v2] XDP Program for Ip forward

2017-10-10 Thread Jesper Dangaard Brouer
On Tue, 10 Oct 2017 12:58:51 +0530 Christina Jacob wrote: > 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 >

[PATCH v2] XDP Program for Ip forward

2017-10-10 Thread 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. --- The program u