]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netlink: specs: remove implicit structs for SNMP counters
authorJakub Kicinski <kuba@kernel.org>
Tue, 6 May 2025 19:40:59 +0000 (12:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 May 2025 01:21:49 +0000 (18:21 -0700)
commitab91c140bea9c2c23ee34ae831e06806e044a80e
treec711c648387daef0c7d8f8212a3a0f70ad8a1758
parent6c2422396d53e2f37ddf5821acb7704df15699c9
netlink: specs: remove implicit structs for SNMP counters

uAPI doesn't define structs for the SNMP counters, just enums to index
them as arrays. Switch to the same representation in the spec. C codegen
will soon need all the struct types to actually exist.

Note that the existing definition was broken, anyway, as the first
member should be the number of counters reported.

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