Skip to content

flower: rework TCA_FLOWER_KEY_ENC_FLAGS usage

Asbjørn Sloth Tønnesen lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest13 patches 3 repliesApplied 13/13
  2. v310 patches 4 repliesSuperseded
  3. v210 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches5 repliesSuperseded

Changes in v4 from the cover letter

- Define control flags in ynl
- Describe enc-flags in ynl
- Propagate tca[TCA_OPTIONS] to NL_REQ_ATTR_CHECK
(all 3 requested by Jakub)
- Link to new iproute2 patch in cover
- Add Reviewed-By from Davide to patches that haven't changed since v3.

Patches in v4 All 13 applied

#Subject and filesSizeRepliesApplied
1/13net/sched: flower: refactor control flag definitionsinclude/net/flow_dissector.h include/uapi/linux/pkt_cls.h+14 -30 repliesApplied
2/13doc: netlink: specs: tc: describe flower control flagsDocumentation/netlink/specs/tc.yaml+10 -01 replyApplied
3/13net/sched: flower: define new tunnel flagsDocumentation/netlink/specs/tc.yaml include/net/flow_dissector.h include/uapi/linux/pkt_cls.h+14 -11 replyApplied
4/13net/sched: cls_flower: prepare fl_{set,dump}_key_flags() for ENC_FLAGSnet/sched/cls_flower.c+30 -100 repliesApplied
5/13net/sched: cls_flower: add policy for TCA_FLOWER_KEY_FLAGSnet/sched/cls_flower.c+8 -20 repliesApplied
6/13flow_dissector: prepare for encapsulated control flagsnet/core/flow_dissector.c+12 -90 repliesApplied
7/13flow_dissector: set encapsulated control flags from tun_flagsnet/core/flow_dissector.c+9 -00 repliesApplied
8/13net/sched: cls_flower: add tunnel flags to fl_{set,dump}_key_flags()net/sched/cls_flower.c+30 -00 repliesApplied
9/13net/sched: cls_flower: rework TCA_FLOWER_KEY_ENC_FLAGS usageinclude/uapi/linux/pkt_cls.h net/sched/cls_flower.c+15 -450 repliesApplied
10/13doc: netlink: specs: tc: flower: add enc-flagsDocumentation/netlink/specs/tc.yaml+12 -01 replyApplied
11/13flow_dissector: cleanup FLOW_DISSECTOR_KEY_ENC_FLAGSinclude/net/flow_dissector.h include/net/ip_tunnels.h net/core/flow_dissector.c +1 more+1 -390 repliesApplied
12/13flow_dissector: set encapsulation control flags for non-IPnet/core/flow_dissector.c net/sched/cls_flower.c+6 -10 repliesApplied
13/13net/sched: cls_flower: propagate tca[TCA_OPTIONS] to NL_REQ_ATTR_CHECKnet/sched/cls_flower.c+20 -140 repliesApplied

Reviews trailers per patch

12 of 13 patches have a Reviewed-by or Acked-by.

PatchDavide CarattiDonald Hunter
1/13R-b
2/13R-b
3/13R-b
4/13T-b R-b
5/13T-b R-b
6/13T-b R-b
7/13T-b R-b
8/13T-b R-b
9/13T-b R-b
10/13R-b
11/13T-b R-b
12/13T-b R-b
13/13

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

Read the v4 thread

Cover letter [PATCH net-next v4 00/13] flower: rework TCA_FLOWER_KEY_ENC_FLAGS usage

This series reworks the recently added TCA_FLOWER_KEY_ENC_FLAGS attribute, to be more like TCA_FLOWER_KEY_FLAGS, and use the unused u32 flags field in FLOW_DISSECTOR_KEY_ENC_CONTROL, instead of adding a new flags field as FLOW_DISSECTOR_KEY_ENC_FLAGS.

I have defined the new FLOW_DIS_F_* and TCA_FLOWER_KEY_FLAGS_* flags to co-exist with the existing flags, so the meaning of the flags field in struct flow_dissector_key_control is not depending on the context it is used in. If we run out of bits then we can always split them up later, if we really want to. Future flags might also be valid in both contexts.

iproute2 RFC v2 patch:
https://lore.kernel.org/560bcd549ca8ab24b1ad5abe352580a621f6d426.1720790774.git.dcaratti@redhat.com/

---
Changelog:

v4:
- Define control flags in ynl
- Describe enc-flags in ynl
- Propagate tca[TCA_OPTIONS] to NL_REQ_ATTR_CHECK
(all 3 requested by Jakub)
- Link to new iproute2 patch in cover
- Add Reviewed-By from Davide to patches that haven't changed since v3.

v3: https://lore.kernel.org/[email protected]/
- Retitle patch 1 (tunnel flags -> control flags)

v2: https://lore.kernel.org/[email protected]/
- Refactor flower control flag definitions
(requested by Jakub and Alexander)
- Add Tested-by from Davide Caratti on patch 3-10.

v1: https://lore.kernel.org/[email protected]/
- Change netlink attribute type from NLA_U32 to NLA_BE32.
- Ensure that the FLOW_DISSECTOR_KEY_ENC_CONTROL
is also masked for non-IP.
- Fix preexisting typo in kdoc for struct flow_dissector_key_control (all suggested by Davide)

RFC: https://lore.kernel.org/[email protected]/

Asbjørn Sloth Tønnesen (13):
net/sched: flower: refactor control flag definitions
doc: netlink: specs: tc: describe flower control flags net/sched: flower: define new tunnel flags
net/sched: cls_flower: prepare fl_{set,dump}_key_flags() for ENC_FLAGS net/sched: cls_flower: add policy for TCA_FLOWER_KEY_FLAGS
flow_dissector: prepare for encapsulated control flags
flow_dissector: set encapsulated control flags from tun_flags net/sched: cls_flower: add tunnel flags to fl_{set,dump}_key_flags() net/sched: cls_flower: rework TCA_FLOWER_KEY_ENC_FLAGS usage
doc: netlink: specs: tc: flower: add enc-flags
flow_dissector: cleanup FLOW_DISSECTOR_KEY_ENC_FLAGS
flow_dissector: set encapsulation control flags for non-IP net/sched: cls_flower: propagate tca[TCA_OPTIONS] to NL_REQ_ATTR_CHECK

 Documentation/netlink/specs/tc.yaml |  26 +++++
 include/net/flow_dissector.h        |  30 ++---
 include/net/ip_tunnels.h            |  12 --
 include/uapi/linux/pkt_cls.h        |  11 +-
 net/core/flow_dissector.c           |  50 +++++----
 net/sched/cls_flower.c              | 168 ++++++++++++++++------------
 6 files changed, 177 insertions(+), 120 deletions(-)
Signature · 1 line
2.45.2