mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
netlink: specs: rt-link: re-align ifla-inet6-stats
YNL enum ifla-inet6-stats got misaligned with C, as two commits reordered the enum. In commitb4a11b2033("net: fix IPSTATS_MIB_OUTPKGS increment in OutForwDatagrams."), IPSTATS_MIB_OUTPKTS was renamed to _OUTREQUESTS and a new _OUTPKTS was as the last entry. In commit652e2c7778("net: reorganize IP MIB values (II)"), the IPSTATS_MIB_* enum was reorganized for data locality. Neither of these commits updated the YNL spec. This changed uAPI, as IPSTATS_MIB_* is used as indicies in an u64 array, exported as IFLA_INET6_STATS by inet6_fill_ifla6_stats_attrs(). This patch updates ifla-inet6-stats to reflect both of these commits. Next time we want to reorganize these counters we should properly apply mapping as to maintain the current order on the netlink side. While touching these entries, also remove the dash from ect{0,1}-pkts, so that they align with the C naming. This pre-existing issue was identified by Sashiko during review of commit2b0aecb7b2("netlink: specs: rt-link: add accept-ra-min-lft"). Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/patchset/20260831093458.472180-1-ast%40fiberby.net CC: Heng Guo <heng.guo@windriver.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn> Link: https://patch.msgid.link/20260925213918.204767-3-ast@fiberby.net Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
e769837e4e
commit
621524a737
1 changed files with 11 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue