Subject: Re: [PATCH net-next] ipv6: move ip6_dst_hoplimit() to net/ipv6/ip6_output.c

From: Jakub Kicinski <[email-masked]>
Date: Tue, 24 Feb 2026 17:49:09 -0800

On Mon, 23 Feb 2026 15:33:42 +0000 Eric Dumazet wrote:
> Move ip6_dst_hoplimit() to net/ipv6/ip6_output.c so that compiler
> can (auto)inline it from ip6_xmit().
> 
> $ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
> add/remove: 0/0 grow/shrink: 1/0 up/down: 47/0 (47)
> Function                                     old     new   delta
> ip6_xmit                                    1481    1528     +47
> Total: Before=25076476, After=25076523, chg +0.00%

allmodconfig is not happy:

ld.lld: error: undefined symbol: ip6_dst_hoplimit
>>> referenced by xfrm_output.c:348 (/srv/nipa-poller/net-next/wt-0/build_clang/../net/xfrm/xfrm_output.c:348)
>>>               vmlinux.o:(xfrm_outer_mode_output)
-- 
pw-bot: cr