[PATCH net-next v3 11/13] tools: ynl: Add NLM_F_BULK

From
Petr Machata <petrm@nvidia.com>
Date
2026-12-04 12:45:34
Also in
bridge
Reply to
Petr Machata, 2026-12-04
Add the NLM_F_BULK flag, which marks a delete request as a bulk delete, to
the netlink flags known to the YNL Python library. It has the same value as
NLM_F_ACK_TLVS, but that one is only used in replies, whereas NLM_F_BULK is
only used in requests.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
---
CC: Donald Hunter <donald.hunter@gmail.com>

 tools/net/ynl/pyynl/lib/ynl.py | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/tools/net/ynl/pyynl/lib/ynl.py b/tools/net/ynl/pyynl/lib/ynl.py
index fb5acb8acded..0e9bcd0f2599 100644
--- a/tools/net/ynl/pyynl/lib/ynl.py
+++ b/tools/net/ynl/pyynl/lib/ynl.py
@@ -61,6 +61,8 @@ class Netlink:
     NLM_F_CREATE = 0x400
     NLM_F_APPEND = 0x800
 
+    NLM_F_BULK = 0x200
+
     NLM_F_CAPPED = 0x100
     NLM_F_ACK_TLVS = 0x200
 
-- 
2.56.1
Thread (14 messages) 14 messages, 1 author, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help