]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
inet: add dst4_mtu() and dst6_mtu() helpers
authorEric Dumazet <edumazet@google.com>
Fri, 30 Jan 2026 21:03:00 +0000 (21:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 01:49:29 +0000 (17:49 -0800)
commit8776c4ef3ab22b95f55713f00a7a576e6402507d
tree27635f01f17849639e166746ac5b1ec0dfe7a7cc
parent94a150bf14af35e67c2ae9ca4650bfed42a9bc11
inet: add dst4_mtu() and dst6_mtu() helpers

With CONFIG_MITIGATION_RETPOLINE=y dst_mtu() is a bit fat,
because it is generic.

Indeed, clang does not always inline it.

Add dst4_mtu() and dst6_mtu() helpers for callers that
expect either ipv4_mtu() or ip6_mtu() to be called.

These helpers are always inlined.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260130210303.3888261-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dst.h
include/net/ip6_route.h