netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] add tc filter example
@ 2025-11-17 10:57 Zahari Doychev
  2025-11-17 10:57 ` [PATCH v3 1/1] ynl: samples: " Zahari Doychev
  0 siblings, 1 reply; 3+ messages in thread
From: Zahari Doychev @ 2025-11-17 10:57 UTC (permalink / raw)
  To: donald.hunter, kuba
  Cc: davem, edumazet, pabeni, horms, jacob.e.keller, ast, matttbe,
	netdev, jhs, xiyou.wangcong, jiri, johannes, zahari.doychev

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.

---
v3:
- 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/20251106151529.453026-1-zahari.doychev@linux.com/
- extend the sampe tool to show and delete the filter
- drop fix for ynl_attr_put_str as already fixed by:
  Link: https://lore.kernel.org/netdev/20251024132438.351290-1-poros@redhat.com/
- make indexed-arrays to start from index 1.
  Link: https://lore.kernel.org/netdev/20251022182701.250897-1-ast@fiberby.net/

v1: https://lore.kernel.org/netdev/20251018151737.365485-1-zahari.doychev@linux.com/

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 | 327 ++++++++++++++++++++++++++
 3 files changed, 329 insertions(+)
 create mode 100644 tools/net/ynl/samples/tc-filter-add.c

-- 
2.51.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-19  2:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 10:57 [PATCH v3 0/1] add tc filter example Zahari Doychev
2025-11-17 10:57 ` [PATCH v3 1/1] ynl: samples: " Zahari Doychev
2025-11-19  2:37   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).