Re: [PATCH net-next v2 10/13] netlink: specs: rt-neigh: Extend the delneigh request attributes

From
Petr Machata <petrm@nvidia.com>
Date
2026-12-01 18:13:13
Also in
bridge, linux-kselftest
Reply to
netdev-bot+sashiko@kernel.org, 2026-12-01
netdev-bot+sashiko@kernel.org writes:
quoted
diff --git a/Documentation/netlink/specs/rt-neigh.yaml b/Documentation/netlink/specs/rt-neigh.yaml
index 7929e667cc7a6..4dd4e3d997f09 100644
--- a/Documentation/netlink/specs/rt-neigh.yaml
+++ b/Documentation/netlink/specs/rt-neigh.yaml
@@ -380,7 +380,11 @@ operations:
           value: 29
           attributes:
             - dst
+            - lladdr
+            - vlan
             - ifindex
+            - ndm-state-mask
+            - ndm-flags-mask
[Severity: Medium]
The commit message says:

  "The kernel accepts more attributes in an RTM_DELNEIGH request than the
  spec lists."

Should port, vni, src-vni and nh-id be added to this list too? This
patch covers what the bridge driver reads. The VXLAN driver, which
RTM_DELNEIGH also reaches, reads four more attributes from the delete
request.
I don't need those attributes, so I didn't add them. Usually unnecessary
interfaces are not added.
rt-neigh is built by the C YNL code generator. Without these four
attributes in the list, the generated delneigh request has no fields
for them. That means a C YNL user can't build any of these requests:
The first C YNL user can add the attributes they are missing.
Thread (25 messages) 25 messages, 3 authors, 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