Files
twx-linux/include/net
Justin Iurman 8513e56e31 include: net: add static inline dst_dev_overhead() to dst.h
[ Upstream commit 0600cf40e9 ]

Add static inline dst_dev_overhead() function to include/net/dst.h. This
helper function is used by ioam6_iptunnel, rpl_iptunnel and
seg6_iptunnel to get the dev's overhead based on a cache entry
(dst_entry). If the cache is empty, the default and generic value
skb->mac_len is returned. Otherwise, LL_RESERVED_SPACE() over dst's dev
is returned.

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Cc: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: c64a0727f9 ("net: ipv6: fix dst ref loop on input in seg6 lwt")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-03-13 12:50:58 +01:00
..
2021-07-01 13:19:48 -07:00
2025-03-13 12:50:43 +01:00
2024-12-19 18:07:20 +01:00
2025-03-13 12:50:42 +01:00
2023-06-14 11:13:02 +02:00
2021-08-03 13:05:26 +01:00
2023-08-11 15:13:54 +02:00