Commit ae4a0483 authored by Justin Iurman's avatar Justin Iurman Committed by Greg Kroah-Hartman
Browse files

include: net: add static inline dst_dev_overhead() to dst.h



[ Upstream commit 0600cf40 ]

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: default avatarJustin Iurman <justin.iurman@uliege.be>
Cc: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Stable-dep-of: 13e55fba ("net: ipv6: fix dst ref loop on input in rpl lwt")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8dd2086c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment