|
@@ -115,6 +115,8 @@ struct udp_tunnel_info {
|
|
|
/* Notify network devices of offloadable types */
|
|
|
void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
|
|
|
unsigned short type);
|
|
|
+void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
|
|
|
+ unsigned short type);
|
|
|
void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type);
|
|
|
void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type);
|
|
|
|
|
@@ -124,6 +126,12 @@ static inline void udp_tunnel_get_rx_info(struct net_device *dev)
|
|
|
call_netdevice_notifiers(NETDEV_UDP_TUNNEL_PUSH_INFO, dev);
|
|
|
}
|
|
|
|
|
|
+static inline void udp_tunnel_drop_rx_info(struct net_device *dev)
|
|
|
+{
|
|
|
+ ASSERT_RTNL();
|
|
|
+ call_netdevice_notifiers(NETDEV_UDP_TUNNEL_DROP_INFO, dev);
|
|
|
+}
|
|
|
+
|
|
|
/* Transmit the skb using UDP encapsulation. */
|
|
|
void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
|
|
|
__be32 src, __be32 dst, __u8 tos, __u8 ttl,
|