summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/udp.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h
index 895240177f4f..0807e21cfec9 100644
--- a/include/linux/udp.h
+++ b/include/linux/udp.h
@@ -101,13 +101,6 @@ struct udp_sock {
/* Cache friendly copy of sk->sk_peek_off >= 0 */
bool peeking_with_offset;
-
- /*
- * Accounting for the tunnel GRO fastpath.
- * Unprotected by compilers guard, as it uses space available in
- * the last UDP socket cacheline.
- */
- struct hlist_node tunnel_list;
};
#define udp_test_bit(nr, sk) \
@@ -226,13 +219,4 @@ static inline void udp_allow_gso(struct sock *sk)
#define IS_UDPLITE(__sk) (__sk->sk_protocol == IPPROTO_UDPLITE)
-static inline struct sock *udp_tunnel_sk(const struct net *net, bool is_ipv6)
-{
-#if IS_ENABLED(CONFIG_NET_UDP_TUNNEL)
- return rcu_dereference(net->ipv4.udp_tunnel_gro[is_ipv6].sk);
-#else
- return NULL;
-#endif
-}
-
#endif /* _LINUX_UDP_H */