Skip to content

net: sched: get rid of cls_flower->egress_dev

Jiri Pirko netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- patch2:
- take rtnl for register/unregister

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: sched: make tc_action_ops->get_dev return dev and avoid passing netinclude/net/act_api.h include/net/tc_act/tc_mirred.h net/sched/act_mirred.c +1 more+9 -140 replies
2/4net: sched: introduce per-egress action device callbacksinclude/net/act_api.h include/net/pkt_cls.h net/sched/act_api.c +1 more+286 -02 replies
3/4net: sched: convert cls_flower->egress_dev users to tc_setup_cb_egdev infradrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +3 more+73 -460 replies
4/4net: sched: remove unused tcf_exts_get_dev helper and cls_flower->egress_devinclude/net/pkt_cls.h net/sched/cls_api.c+0 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [patch net-next v2 0/4] net: sched: get rid of cls_flower->egress_dev

From: Jiri Pirko <[email protected]>

Introduction of cls_flower->egress_dev was a workaround. Turned out to be a bit ugly hack. So replace it with more generic and reusable infrastructure.

This is a dependency of shared block introduction that will be send as a follow-up patchsets group.
---
v1->v2:
- patch2:
- take rtnl for register/unregister

Jiri Pirko (4):
net: sched: make tc_action_ops->get_dev return dev and avoid passing
net
net: sched: introduce per-egress action device callbacks
net: sched: convert cls_flower->egress_dev users to tc_setup_cb_egdev
infra
net: sched: remove unused tcf_exts_get_dev helper and

    cls_flower->egress_dev
 drivers/net/ethernet/mellanox/mlx5/core/en.h      |   3 +
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c |   4 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c  |  31 ++-
 include/net/act_api.h                             |  37 +++-
 include/net/pkt_cls.h                             |   6 +-
 include/net/tc_act/tc_mirred.h                    |   1 +
 net/sched/act_api.c                               | 220 ++++++++++++++++++++++
 net/sched/act_mirred.c                            |  13 +-
 net/sched/cls_api.c                               |  35 ++--
 net/sched/cls_flower.c                            |  63 ++++---
 10 files changed, 348 insertions(+), 65 deletions(-)
Signature · 1 line
2.9.5