Re: [RFCv2 16/16] nfp: bpf: add offload of TC direct action mode

2016-08-30 Thread Jakub Kicinski
On Tue, 30 Aug 2016 22:02:10 +0200, Daniel Borkmann wrote: > On 08/30/2016 12:52 PM, Jakub Kicinski wrote: > > On Mon, 29 Aug 2016 23:09:35 +0200, Daniel Borkmann wrote: > [...] > >> > >> In da mode, RECLASSIFY is not supported, so this one could be scratched. > >> For the OK and UNSPEC part,

Re: [RFCv2 16/16] nfp: bpf: add offload of TC direct action mode

2016-08-30 Thread Daniel Borkmann
On 08/30/2016 12:52 PM, Jakub Kicinski wrote: On Mon, 29 Aug 2016 23:09:35 +0200, Daniel Borkmann wrote: +* 0,1 okNOT SUPPORTED[1] +* 2 drop 0x22 -> drop, count as stat1 +* 4,5 nuke 0x02 -> drop +* 7 redir 0x44 -> redir, count as stat2 +

Re: [RFCv2 16/16] nfp: bpf: add offload of TC direct action mode

2016-08-30 Thread Jakub Kicinski
On Mon, 29 Aug 2016 23:09:35 +0200, Daniel Borkmann wrote: > > +* 0,1 okNOT SUPPORTED[1] > > +* 2 drop 0x22 -> drop, count as stat1 > > +* 4,5 nuke 0x02 -> drop > > +* 7 redir 0x44 -> redir, count as stat2 > > +* * unspec 0x11 -> pass, count as stat0

Re: [RFCv2 16/16] nfp: bpf: add offload of TC direct action mode

2016-08-29 Thread Daniel Borkmann
On 08/26/2016 08:06 PM, Jakub Kicinski wrote: Add offload of TC in direct action mode. We just need to provide appropriate checks in the verifier and a new outro block to translate the exit codes to what data path expects Signed-off-by: Jakub Kicinski [...] +static void nfp_outro_tc_da(struc

[RFCv2 16/16] nfp: bpf: add offload of TC direct action mode

2016-08-26 Thread Jakub Kicinski
Add offload of TC in direct action mode. We just need to provide appropriate checks in the verifier and a new outro block to translate the exit codes to what data path expects Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/netronome/nfp/nfp_bpf.h | 1 + drivers/net/ethernet/netro