summaryrefslogtreecommitdiff
path: root/include/net/ipv6_stubs.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-05-04 11:06:06 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2020-05-06 10:40:08 +0300
commit3e50ddd8b8d5067796fc87cbbb25c71451ccb385 (patch)
tree4e392af245ec8a868c20fe0a118a955fd5c41105 /include/net/ipv6_stubs.h
parent171916cbd53dec5c7b05efb56a201671d92effc1 (diff)
downloadlinux-3e50ddd8b8d5067796fc87cbbb25c71451ccb385.tar.xz
xfrm: expose local_rxpmtu via ipv6_stubs
We cannot call this function from the core kernel unless we would force CONFIG_IPV6=y. Therefore expose this via ipv6_stubs so we can call it from net/xfrm in the followup patch. Since the call is expected to be unlikely, no extra code for the IPV6=y case is added and we will always eat the indirection cost. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/ipv6_stubs.h')
-rw-r--r--include/net/ipv6_stubs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ipv6_stubs.h b/include/net/ipv6_stubs.h
index 1e9e0cf7dc75..d8ab3872aa2a 100644
--- a/include/net/ipv6_stubs.h
+++ b/include/net/ipv6_stubs.h
@@ -57,6 +57,7 @@ struct ipv6_stub {
const struct in6_addr *solicited_addr,
bool router, bool solicited, bool override, bool inc_opt);
#if IS_ENABLED(CONFIG_XFRM)
+ void (*xfrm6_local_rxpmtu)(struct sk_buff *skb, u32 mtu);
int (*xfrm6_udp_encap_rcv)(struct sock *sk, struct sk_buff *skb);
int (*xfrm6_rcv_encap)(struct sk_buff *skb, int nexthdr, __be32 spi,
int encap_type);