]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: snmp: do not use SNMP_MIB_SENTINEL anymore
authorEric Dumazet <edumazet@google.com>
Fri, 5 Sep 2025 16:58:06 +0000 (16:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Sep 2025 01:06:20 +0000 (18:06 -0700)
commitceac1fb2290d230eb83aff3761058c559440de13
tree73109ed3d56ad18e6596b4e2b8722e67c29652d0
parentb7fe8c1be776baa1bec587499e989395c0aee8ef
ipv6: snmp: do not use SNMP_MIB_SENTINEL anymore

Use ARRAY_SIZE(), so that we know the limit at compile time.

Following patch needs this preliminary change.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20250905165813.1470708-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip.h
net/ipv6/proc.c