# \[PATCH net-next 11/13\] tools: ynl: Add NLM\_F\_BULK

- From: Petr Machata \<petrm@nvidia.com\>
- Date: 2026-11-23 18:01:34 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/11/18007342
- Thread: https://ratatoskr.run/netdev/2026/11/18007332/t.md

```text
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>
---
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

```
