Skip to content

net: sched: summer cleanup part 1, mainly in exts area

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 Latest20 patches 1 replyIn review
  2. v120 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- removed conversion of action array to list as noted by Cong
- added the past patch instead
- small rebases of patches 11-19

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20net: sched: sch_atm: use Qdisc_class_common structurenet/sched/sch_atm.c+6 -60 replies
2/20net: sched: remove unneeded tcf_em_tree_changeinclude/net/pkt_cls.h net/sched/cls_basic.c net/sched/cls_cgroup.c +1 more+7 -340 replies
3/20net: sched: change names of action number helpers to be aligned with the restdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c drivers/net/ethernet/intel/ixgbe/ixgbe_main.c drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +6 more+37 -190 replies
4/20net: sched: use tcf_exts_has_actions in tcf_exts_execinclude/net/pkt_cls.h+23 -230 replies
5/20net: sched: remove redundant helpers tcf_exts_is_predicative and tcf_exts_is_availableinclude/net/pkt_cls.h net/sched/cls_fw.c net/sched/cls_route.c +1 more+3 -330 replies
6/20net: sched: fix return value of tcf_exts_execinclude/net/pkt_cls.h+2 -20 replies
7/20net: sched: remove check for number of actions in tcf_exts_execinclude/net/pkt_cls.h net/sched/act_api.c+3 -40 replies
8/20net: sched: use tcf_exts_has_actions instead of exts->nr_actionsnet/sched/cls_api.c+1 -10 replies
9/20net: sched: cls_bpf: rename cls_bpf_modify_existing functionnet/sched/cls_bpf.c+4 -60 replies
10/20net: sched: cls_fw: rename fw_change_attrs functionnet/sched/cls_fw.c+5 -60 replies
11/20net: sched: cls_flower: no need to call tcf_exts_change for newly allocated structnet/sched/cls_flower.c+2 -110 replies
12/20net: sched: cls_fw: no need to call tcf_exts_change for newly allocated structnet/sched/cls_fw.c+5 -160 replies
13/20net: sched: cls_matchall: no need to call tcf_exts_change for newly allocated structnet/sched/cls_matchall.c+2 -120 replies
14/20net: sched: cls_basic: no need to call tcf_exts_change for newly allocated structnet/sched/cls_basic.c+2 -110 replies
15/20net: sched: cls_bpf: no need to call tcf_exts_change for newly allocated structnet/sched/cls_bpf.c+6 -190 replies
16/20net: sched: cls_cgroup: no need to call tcf_exts_change for newly allocated structnet/sched/cls_cgroup.c+2 -120 replies
17/20net: sched: cls_flow: no need to call tcf_exts_change for newly allocated structnet/sched/cls_flow.c+16 -250 replies
18/20net: sched: cls_route: no need to call tcf_exts_change for newly allocated structnet/sched/cls_route.c+9 -210 replies
19/20net: sched: cls_u32: no need to call tcf_exts_change for newly allocated structnet/sched/cls_u32.c+4 -140 replies
20/20net: sched: avoid atomic swap in tcf_exts_changeinclude/net/pkt_cls.h net/sched/cls_api.c net/sched/cls_rsvp.h +1 more+8 -150 replies

Reviews trailers per patch

3 of 20 patches have a Reviewed-by or Acked-by.

PatchJamal Hadi SalimDaniel Borkmann
1/20A-b
2/20
3/20A-b
4/20
5/20
6/20
7/20
8/20
9/20A-b
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [patch net-next v2 00/20] net: sched: summer cleanup part 1, mainly in exts area

From: Jiri Pirko <[email protected]>

This patchset is one of the couple cleanup patchsets I have in queue. The motivation aside the obvious need to "make things nicer" is also to prepare for shared filter blocks introduction. That requires tp->q removal, and therefore removal of all tp->q users.

Patch 1 is just some small thing I spotted on the way Patch 2 removes one user of tp->q, namely tcf_em_tree_change Patches 3-8 do preparations for exts->nr_actions removal Patches 9-10 do simple renames of functions in cls* Patches 11-19 remove unnecessary calls of tcf_exts_change helper The last patch changes tcf_exts_change to don't take lock

Tested by tools/testing/selftests/tc-testing

v1->v2:
- removed conversion of action array to list as noted by Cong
- added the past patch instead
- small rebases of patches 11-19

Jiri Pirko (20):
net: sched: sch_atm: use Qdisc_class_common structure
net: sched: remove unneeded tcf_em_tree_change
net: sched: change names of action number helpers to be aligned with
the rest
net: sched: use tcf_exts_has_actions in tcf_exts_exec
net: sched: remove redundant helpers tcf_exts_is_predicative and
tcf_exts_is_available
net: sched: fix return value of tcf_exts_exec
net: sched: remove check for number of actions in tcf_exts_exec
net: sched: use tcf_exts_has_actions instead of exts->nr_actions
net: sched: cls_bpf: rename cls_bpf_modify_existing function
net: sched: cls_fw: rename fw_change_attrs function
net: sched: cls_flower: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_fw: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_matchall: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_basic: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_bpf: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_cgroup: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_flow: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_route: no need to call tcf_exts_change for newly
allocated struct
net: sched: cls_u32: no need to call tcf_exts_change for newly
allocated struct
net: sched: avoid atomic swap in tcf_exts_change

 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c  |   2 +-
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c      |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c    |   4 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |   2 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_flower.c  |   2 +-
 drivers/net/ethernet/netronome/nfp/bpf/offload.c   |   4 +-
 include/net/pkt_cls.h                              | 106 +++++++--------------
 net/dsa/slave.c                                    |   2 +-
 net/sched/act_api.c                                |   3 +-
 net/sched/cls_api.c                                |  14 +--
 net/sched/cls_basic.c                              |  17 +---
 net/sched/cls_bpf.c                                |  35 ++-----
 net/sched/cls_cgroup.c                             |  18 +---
 net/sched/cls_flow.c                               |  47 ++++-----
 net/sched/cls_flower.c                             |  13 +--
 net/sched/cls_fw.c                                 |  34 +++----
 net/sched/cls_matchall.c                           |  14 +--
 net/sched/cls_route.c                              |  32 ++-----
 net/sched/cls_rsvp.h                               |   4 +-
 net/sched/cls_tcindex.c                            |   8 +-
 net/sched/cls_u32.c                                |  18 +---
 net/sched/sch_atm.c                                |  12 +--
 22 files changed, 125 insertions(+), 268 deletions(-)
Signature · 1 line
2.9.3