netlink: specs: rt-link: make bond's ipv6 address attribute fixed size
authorJakub Kicinski <kuba@kernel.org>
Fri, 18 Apr 2025 02:17:01 +0000 (19:17 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Apr 2025 23:07:16 +0000 (16:07 -0700)
ns-ip6-target is an indexed-array. Codegen for variable size binary
array would be a bit tedious, tell C that we know the size of these
attributes, since they are IPv6 addrs.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250418021706.1967583-8-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt-link.yaml

index 6ab9b876a464a13a1a3918aac41fd9dba3752527..4b51c5b60d9550c194243e21faa10ae337f6f237 100644 (file)
@@ -1447,6 +1447,8 @@ attribute-sets:
         type: indexed-array
         sub-type: binary
         display-hint: ipv6
+        checks:
+          exact-len: 16
       -
         name: coupled-control
         type: u8