Skip to content

net: flower: add cfm support

Zahari Doychev netdev 7 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. v7 Latest3 patches 1 replyApplied 3/3
  2. v63 patches 1 replySuperseded
  3. v53 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches9 repliesSuperseded
v33 patches5 repliesSuperseded
v22 patches5 repliesSuperseded
v12 patches4 repliesSuperseded

Changes in v7 from the cover letter

- make fl_set_key_cfm_md_level() void

Patches in v7 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: flow_dissector: add support for cfm packetsinclude/net/flow_dissector.h net/core/flow_dissector.c+51 -00 repliesApplied
2/3net: flower: add support for matching cfm fieldsinclude/uapi/linux/pkt_cls.h net/sched/cls_flower.c+111 -01 replyApplied
3/3selftests: net: add tc flower cfm testtools/testing/selftests/net/forwarding/Makefile tools/testing/selftests/net/forwarding/tc_flower_cfm.sh+207 -00 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSimon HormanIdo Schimmel
1/3R-b R-b
2/3R-b R-b
3/3R-b

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

Read the v7 thread

Cover letter [PATCH net-next v7 0/3] net: flower: add cfm support

From: Zahari Doychev <[email protected]>

The first patch adds cfm support to the flow dissector. The second adds the flower classifier support.
The third adds a selftest for the flower cfm functionality.

iproute2 changes will come in follow up patches.

---
v6->v7
- make fl_set_key_cfm_md_level() void

v5->v6
- do not use NLA_POLICY_NESTED() for cfm_opt_policy attribute

v4->v5
- fix coding style in flow dissector
- use strict validation for flower cfm attributes
- selftest: remove unneeded parameters and configuration
- selftest: make cfm packet generation code more readable
- selftest: use the same pref for each filter
- selftest: check if all filters match

v3->v4
- use correct size in memchr_inv()
- remove md level range check and use NLA_POLICY_MAX

v2->v3
- split the flow dissector and flower changes in separate patches
- use bit field macros
- copy separately each cfm key field

v1->v2:
- add missing comments
- improve cfm packet dissection
- move defines to header file
- fix code formatting
- remove unneeded attribute defines

rfc->v1:
- add selftest to the makefile TEST_PROGS.

Zahari Doychev (3):
net: flow_dissector: add support for cfm packets
net: flower: add support for matching cfm fields
selftests: net: add tc flower cfm test

 include/net/flow_dissector.h                  |  21 ++
 include/uapi/linux/pkt_cls.h                  |   9 +
 net/core/flow_dissector.c                     |  30 +++
 net/sched/cls_flower.c                        | 102 +++++++++
 .../testing/selftests/net/forwarding/Makefile |   1 +
 .../selftests/net/forwarding/tc_flower_cfm.sh | 206 ++++++++++++++++++
 6 files changed, 369 insertions(+)
 create mode 100755 tools/testing/selftests/net/forwarding/tc_flower_cfm.sh
Signature · 1 line
2.41.0