net: sched: let the offloader decide what to offload
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: sched: Add helpers to identify classidsinclude/ | +14 | 0 replies | |
| 2/5 | net: sched: propagate classid down to offload driversinclude/ | +2 | 0 replies | |
| 3/5 | net: sched: use newly added classid identity helpersdrivers/ drivers/ drivers/ +5 more | +30 | 0 replies | |
| 4/5 | net: sched: remove handle propagation down to the driversinclude/ | +0 | 0 replies | |
| 5/5 | net: sched: remove cops->tcf_cl_offloadinclude/ include/ net/ +4 more | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch net-next 0/5] net: sched: let the offloader decide what to offload
From: Jiri Pirko <[email protected]>
Currently there is a Qdisc_class_ops->tcf_cl_offload callback that is called to find out if cls would offload rule or not. This is only supported by sch_ingress and sch_clsact.
So the Qdisc are to decide. However, the driver knows what is he able to offload, so move the decision making to drivers completely. Just pass classid there and provide set of helpers to allow identification of qdisc.
As a side effect, this actually allows clsact egress rules offload in mlxsw.
Jiri Pirko (5):
net: sched: Add helpers to identify classids
net: sched: propagate classid down to offload drivers
net: sched: use newly added classid identity helpers
net: sched: remove handle propagation down to the drivers
net: sched: remove cops->tcf_cl_offload
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 18 ++++++++++++++++-- drivers/net/ethernet/netronome/nfp/bpf/main.c | 2 +- drivers/net/ethernet/netronome/nfp/flower/offload.c | 2 +- include/net/pkt_cls.h | 18 +++++------------- include/net/pkt_sched.h | 14 ++++++++++++++ include/net/sch_generic.h | 1 - net/dsa/slave.c | 9 ++++++++- net/sched/cls_bpf.c | 4 ++-- net/sched/cls_flower.c | 8 ++++---- net/sched/cls_matchall.c | 4 ++-- net/sched/cls_u32.c | 8 ++++---- net/sched/sch_ingress.c | 12 ------------ 16 files changed, 61 insertions(+), 47 deletions(-)
Signature · 1 line
2.9.3