diff options
| author | Justin Iurman <justin.iurman@uliege.be> | 2024-12-03 13:49:42 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 14:01:38 +0100 |
| commit | 9a1c65ff5e0d569d229b5fdec7d1f653a8ef39d2 (patch) | |
| tree | eb3dc04b1057f6fa2230df1b1c637a851dad17b2 /net/ipv6 | |
| parent | cad62c5aee916d5b5f537af29cd84c163330fd78 (diff) | |
| download | linux-9a1c65ff5e0d569d229b5fdec7d1f653a8ef39d2.tar.gz linux-9a1c65ff5e0d569d229b5fdec7d1f653a8ef39d2.tar.bz2 linux-9a1c65ff5e0d569d229b5fdec7d1f653a8ef39d2.zip | |
include: net: add static inline dst_dev_overhead() to dst.h
[ Upstream commit 0600cf40e9b36fe17f9c9f04d4f9cef249eaa5e7 ]
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: 92191dd10730 ("net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions
