]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: snmp: remove icmp6type2name[]
authorEric Dumazet <edumazet@google.com>
Fri, 5 Sep 2025 16:58:05 +0000 (16:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Sep 2025 01:06:20 +0000 (18:06 -0700)
commitb7fe8c1be776baa1bec587499e989395c0aee8ef
tree09cb5bfe2aebf3929cf352395bca87173f970efd
parentabcf9f662bc7ec72b3591d785eccd7dd8c239365
ipv6: snmp: remove icmp6type2name[]

This 2KB array can be replaced by a switch() to save space.

Before:
$ size net/ipv6/proc.o
   text    data     bss     dec     hex filename
   6410     624       0    7034    1b7a net/ipv6/proc.o

After:
$ size net/ipv6/proc.o
   text    data     bss     dec     hex filename
   5516     592       0    6108    17dc net/ipv6/proc.o

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