Skip to content

Add tc filter example

Zahari Doychev netdev 4 versions – Applied

Status from this message: This patch 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 Latest1 patch 0 repliesApplied 1/1
  2. v31 patch 1 replySuperseded
  3. v23 patches 6 repliesSuperseded 1 of 3 applied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches13 repliesSuperseded

Changes in v4 from the cover letter

- Fix tc-filter-add return error codes.

Patches in v4 All 1 applied

#Subject and filesSizeRepliesApplied
1/1ynl: samples: add tc filter exampletools/net/ynl/samples/.gitignore tools/net/ynl/samples/Makefile tools/net/ynl/samples/tc-filter-add.c+337 -00 repliesApplied

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/1] Add tc filter example

The patch in this series introduces an example tool that creates, shows and deletes flower filter with two VLAN actions. The example inserts a dummy action at index 0 to work around the tc actions array oddity.

---
v4:
- Fix tc-filter-add return error codes.

v3: https://lore.kernel.org/netdev/[email protected]/
- Dropped the patch that ignored index zero for indexed arrays.
- Extended the example to work around tc action array indexing oddity.
- Move to the example CFLAGS to samples/Makefile.
- Enhanced attribute dumping.

v2: https://lore.kernel.org/netdev/[email protected]/
- extend the sampe tool to show and delete the filter
- drop fix for ynl_attr_put_str as already fixed by:

- make indexed-arrays to start from index 1.

v1: https://lore.kernel.org/netdev/[email protected]/

Zahari Doychev (1):
ynl: samples: add tc filter example

 tools/net/ynl/samples/.gitignore      |   1 +
 tools/net/ynl/samples/Makefile        |   1 +
 tools/net/ynl/samples/tc-filter-add.c | 335 ++++++++++++++++++++++++++
 3 files changed, 337 insertions(+)
 create mode 100644 tools/net/ynl/samples/tc-filter-add.c
Signature · 1 line
2.51.2