Re: [RFCv2 03/16] net: cls_bpf: limit hardware offload by software-only flag

2016-08-29 Thread Jakub Kicinski
On Mon, 29 Aug 2016 17:06:34 +0200, Daniel Borkmann wrote: > On 08/26/2016 08:06 PM, Jakub Kicinski wrote: > > [...] > > @@ -372,6 +377,7 @@ static int cls_bpf_modify_existing(struct net *net, > > struct tcf_proto *tp, > > { > > bool is_bpf, is_ebpf, have_exts = false; > > struct tcf_ext

Re: [RFCv2 03/16] net: cls_bpf: limit hardware offload by software-only flag

2016-08-29 Thread Daniel Borkmann
On 08/26/2016 08:06 PM, Jakub Kicinski wrote: Add cls_bpf support for the TCA_CLS_FLAGS_SKIP_HW flag. Unlike U32 and flower cls_bpf already has some netlink flags defined. I chose to create a new attribute to be able to use the same flag values as the above. Unknown flags are ignored and not re

[RFCv2 03/16] net: cls_bpf: limit hardware offload by software-only flag

2016-08-26 Thread Jakub Kicinski
Add cls_bpf support for the TCA_CLS_FLAGS_SKIP_HW flag. Unlike U32 and flower cls_bpf already has some netlink flags defined. I chose to create a new attribute to be able to use the same flag values as the above. Unknown flags are ignored and not reported upon dump. Signed-off-by: Jakub Kicinski