net: sched: fix tc_should_offload for specific clsact classes
When offloading classifiers such as u32 or flower to hardware, and the qdisc is clsact (TC_H_CLSACT), then we need to differentiate its classes, since not all of them handle ingress, therefore we must leave those in software path. Add a .tcf_cl_offload() callback, so we can generically handle them, tested on ixgbe. Fixes: 10cbc684 ("net/sched: cls_flower: Hardware offloaded filters statistics support") Fixes: 5b33f488 ("net/flower: Introduce hardware offload support") Fixes: a1b7c5fd ("net: sched: add cls_u32 offload hooks for netdevs") Signed-off-by:Daniel Borkmann <daniel@iogearbox.net> Acked-by:
John Fastabend <john.r.fastabend@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/pkt_cls.h 7 additions, 3 deletionsinclude/net/pkt_cls.h
- include/net/sch_generic.h 1 addition, 0 deletionsinclude/net/sch_generic.h
- net/sched/cls_flower.c 3 additions, 3 deletionsnet/sched/cls_flower.c
- net/sched/cls_u32.c 4 additions, 4 deletionsnet/sched/cls_u32.c
- net/sched/sch_ingress.c 12 additions, 0 deletionsnet/sched/sch_ingress.c
Loading
Please register or sign in to comment