aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_tunnels.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip_tunnels.h')
-rw-r--r--include/net/ip_tunnels.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index a354db5b7662..a0a4a100f5c9 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -86,12 +86,12 @@ struct tnl_ptk_info {
86#define PACKET_RCVD 0 86#define PACKET_RCVD 0
87#define PACKET_REJECT 1 87#define PACKET_REJECT 1
88 88
89#define IP_TNL_HASH_BITS 10 89#define IP_TNL_HASH_BITS 7
90#define IP_TNL_HASH_SIZE (1 << IP_TNL_HASH_BITS) 90#define IP_TNL_HASH_SIZE (1 << IP_TNL_HASH_BITS)
91 91
92struct ip_tunnel_net { 92struct ip_tunnel_net {
93 struct hlist_head *tunnels;
94 struct net_device *fb_tunnel_dev; 93 struct net_device *fb_tunnel_dev;
94 struct hlist_head tunnels[IP_TNL_HASH_SIZE];
95}; 95};
96 96
97#ifdef CONFIG_INET 97#ifdef CONFIG_INET
@@ -102,7 +102,7 @@ void ip_tunnel_dellink(struct net_device *dev, struct list_head *head);
102int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, 102int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id,
103 struct rtnl_link_ops *ops, char *devname); 103 struct rtnl_link_ops *ops, char *devname);
104 104
105void ip_tunnel_delete_net(struct ip_tunnel_net *itn); 105void ip_tunnel_delete_net(struct ip_tunnel_net *itn, struct rtnl_link_ops *ops);
106 106
107void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev, 107void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
108 const struct iphdr *tnl_params, const u8 protocol); 108 const struct iphdr *tnl_params, const u8 protocol);
@@ -146,10 +146,9 @@ static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph,
146} 146}
147 147
148int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto); 148int iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto);
149int iptunnel_xmit(struct net *net, struct rtable *rt, 149int iptunnel_xmit(struct rtable *rt, struct sk_buff *skb,
150 struct sk_buff *skb,
151 __be32 src, __be32 dst, __u8 proto, 150 __be32 src, __be32 dst, __u8 proto,
152 __u8 tos, __u8 ttl, __be16 df); 151 __u8 tos, __u8 ttl, __be16 df, bool xnet);
153 152
154static inline void iptunnel_xmit_stats(int err, 153static inline void iptunnel_xmit_stats(int err,
155 struct net_device_stats *err_stats, 154 struct net_device_stats *err_stats,