Lines Matching refs:ip6_tnl

66 	struct ip6_tnl __rcu *tunnels[4][IP6_GRE_HASH_SIZE];
68 struct ip6_tnl __rcu *collect_md_tun;
69 struct ip6_tnl __rcu *collect_md_tun_erspan;
78 static void ip6gre_tunnel_link(struct ip6gre_net *ign, struct ip6_tnl *t);
79 static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu);
80 static void ip6erspan_tnl_link_config(struct ip6_tnl *t, int set_mtu);
115 static struct ip6_tnl *ip6gre_tunnel_lookup(struct net_device *dev, in ip6gre_tunnel_lookup()
123 struct ip6_tnl *t, *cand = NULL; in ip6gre_tunnel_lookup()
249 static struct ip6_tnl __rcu **__ip6gre_bucket(struct ip6gre_net *ign, in __ip6gre_bucket()
267 static void ip6gre_tunnel_link_md(struct ip6gre_net *ign, struct ip6_tnl *t) in ip6gre_tunnel_link_md()
273 static void ip6erspan_tunnel_link_md(struct ip6gre_net *ign, struct ip6_tnl *t) in ip6erspan_tunnel_link_md()
279 static void ip6gre_tunnel_unlink_md(struct ip6gre_net *ign, struct ip6_tnl *t) in ip6gre_tunnel_unlink_md()
286 struct ip6_tnl *t) in ip6erspan_tunnel_unlink_md()
292 static inline struct ip6_tnl __rcu **ip6gre_bucket(struct ip6gre_net *ign, in ip6gre_bucket()
293 const struct ip6_tnl *t) in ip6gre_bucket()
298 static void ip6gre_tunnel_link(struct ip6gre_net *ign, struct ip6_tnl *t) in ip6gre_tunnel_link()
300 struct ip6_tnl __rcu **tp = ip6gre_bucket(ign, t); in ip6gre_tunnel_link()
306 static void ip6gre_tunnel_unlink(struct ip6gre_net *ign, struct ip6_tnl *t) in ip6gre_tunnel_unlink()
308 struct ip6_tnl __rcu **tp; in ip6gre_tunnel_unlink()
309 struct ip6_tnl *iter; in ip6gre_tunnel_unlink()
321 static struct ip6_tnl *ip6gre_tunnel_find(struct net *net, in ip6gre_tunnel_find()
329 struct ip6_tnl *t; in ip6gre_tunnel_find()
330 struct ip6_tnl __rcu **tp; in ip6gre_tunnel_find()
346 static struct ip6_tnl *ip6gre_tunnel_locate(struct net *net, in ip6gre_tunnel_locate()
349 struct ip6_tnl *t, *nt; in ip6gre_tunnel_locate()
395 struct ip6_tnl *t = netdev_priv(dev); in ip6erspan_tunnel_uninit()
406 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_uninit()
424 struct ip6_tnl *t; in ip6gre_err()
491 struct ip6_tnl *tunnel; in ip6gre_rcv()
528 struct ip6_tnl *tunnel; in ip6erspan_rcv()
641 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv4()
667 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv6()
713 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_other()
751 struct ip6_tnl *tunnel = netdev_priv(dev); in __gre6_xmit()
821 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv4()
854 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv6()
886 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_other()
909 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_xmit()
949 struct ip6_tnl *t = netdev_priv(dev); in ip6erspan_tunnel_xmit()
1114 static void ip6gre_tnl_link_config_common(struct ip6_tnl *t) in ip6gre_tnl_link_config_common()
1148 static void ip6gre_tnl_link_config_route(struct ip6_tnl *t, int set_mtu, in ip6gre_tnl_link_config_route()
1191 static int ip6gre_calc_hlen(struct ip6_tnl *tunnel) in ip6gre_calc_hlen()
1208 static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6gre_tnl_link_config()
1214 static void ip6gre_tnl_copy_tnl_parm(struct ip6_tnl *t, in ip6gre_tnl_copy_tnl_parm()
1237 static int ip6gre_tnl_change(struct ip6_tnl *t, const struct __ip6_tnl_parm *p, in ip6gre_tnl_change()
1287 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_siocdevprivate()
1396 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_header()
1442 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_dev_free()
1472 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_tnl_init_features()
1494 struct ip6_tnl *tunnel; in ip6gre_tunnel_init_common()
1535 struct ip6_tnl *tunnel; in ip6gre_tunnel_init()
1558 struct ip6_tnl *tunnel = netdev_priv(dev); in ip6gre_fb_tunnel_init()
1588 struct ip6_tnl *t; in ip6gre_destroy_tunnels()
1613 ndev = alloc_netdev(sizeof(struct ip6_tnl), "ip6gre0", in ip6gre_init_net()
1863 static int ip6erspan_calc_hlen(struct ip6_tnl *tunnel) in ip6erspan_calc_hlen()
1878 struct ip6_tnl *tunnel; in ip6erspan_tap_init()
1978 struct ip6_tnl *nt; in ip6gre_newlink_common()
2012 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_newlink()
2037 static struct ip6_tnl *
2042 struct ip6_tnl *t, *nt = netdev_priv(dev); in ip6gre_changelink_common()
2075 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_changelink()
2144 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_fill_info()
2248 struct ip6_tnl *nt = netdev_priv(dev); in ip6erspan_newlink()
2274 static void ip6erspan_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6erspan_tnl_link_config()
2280 static int ip6erspan_tnl_change(struct ip6_tnl *t, in ip6erspan_tnl_change()
2294 struct ip6_tnl *t; in ip6erspan_changelink()
2313 .priv_size = sizeof(struct ip6_tnl),
2328 .priv_size = sizeof(struct ip6_tnl),
2342 .priv_size = sizeof(struct ip6_tnl),