netlink: specs: rt-route: remove the fixed members from attrs

The purpose of the attribute list is to list the attributes
which will be included in a given message to shrink the objects
for families with huge attr spaces. Fixed headers are always
present in their entirety (between netlink header and the attrs)
so there's no point in listing their members. Current C codegen
doesn't expect them and tries to look them up in the attribute space.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250410014658.782120-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski
2025-04-09 18:46:49 -07:00
parent d460016e7b
commit 295ff1e952

View File

@@ -255,11 +255,8 @@ operations:
request:
value: 26
attributes:
- rtm-family
- src
- rtm-src-len
- dst
- rtm-dst-len
- iif
- oif
- ip-proto
@@ -271,15 +268,6 @@ operations:
reply:
value: 24
attributes: &all-route-attrs
- rtm-family
- rtm-dst-len
- rtm-src-len
- rtm-tos
- rtm-table
- rtm-protocol
- rtm-scope
- rtm-type
- rtm-flags
- dst
- src
- iif
@@ -311,8 +299,7 @@ operations:
dump:
request:
value: 26
attributes:
- rtm-family
attributes: []
reply:
value: 24
attributes: *all-route-attrs