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()
400 struct ip6_tnl *t = netdev_priv(dev); in ip6erspan_tunnel_uninit()
411 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_uninit()
429 struct ip6_tnl *t; in ip6gre_err()
496 struct ip6_tnl *tunnel; in ip6gre_rcv()
533 struct ip6_tnl *tunnel; in ip6erspan_rcv()
642 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv4()
668 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv6()
725 struct ip6_tnl *tunnel = netdev_priv(dev); in __gre6_xmit()
785 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv4()
817 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv6()
860 static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl *t, in ip6gre_tnl_addr_conflict()
868 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_other()
892 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_xmit()
931 struct ip6_tnl *t = netdev_priv(dev); in ip6erspan_tunnel_xmit()
1084 static void ip6gre_tnl_link_config_common(struct ip6_tnl *t) in ip6gre_tnl_link_config_common()
1117 static void ip6gre_tnl_link_config_route(struct ip6_tnl *t, int set_mtu, in ip6gre_tnl_link_config_route()
1158 static int ip6gre_calc_hlen(struct ip6_tnl *tunnel) in ip6gre_calc_hlen()
1175 static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6gre_tnl_link_config()
1181 static void ip6gre_tnl_copy_tnl_parm(struct ip6_tnl *t, in ip6gre_tnl_copy_tnl_parm()
1204 static int ip6gre_tnl_change(struct ip6_tnl *t, const struct __ip6_tnl_parm *p, in ip6gre_tnl_change()
1254 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_siocdevprivate()
1363 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_header()
1410 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_dev_free()
1440 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_tnl_init_features()
1465 struct ip6_tnl *tunnel; in ip6gre_tunnel_init_common()
1512 struct ip6_tnl *tunnel; in ip6gre_tunnel_init()
1535 struct ip6_tnl *tunnel = netdev_priv(dev); in ip6gre_fb_tunnel_init()
1565 struct ip6_tnl *t; in ip6gre_destroy_tunnels()
1590 ndev = alloc_netdev(sizeof(struct ip6_tnl), "ip6gre0", in ip6gre_init_net()
1844 static int ip6erspan_calc_hlen(struct ip6_tnl *tunnel) in ip6erspan_calc_hlen()
1859 struct ip6_tnl *tunnel; in ip6erspan_tap_init()
1965 struct ip6_tnl *nt; in ip6gre_newlink_common()
1999 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_newlink()
2024 static struct ip6_tnl *
2029 struct ip6_tnl *t, *nt = netdev_priv(dev); in ip6gre_changelink_common()
2062 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_changelink()
2131 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_fill_info()
2232 struct ip6_tnl *nt = netdev_priv(dev); in ip6erspan_newlink()
2258 static void ip6erspan_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6erspan_tnl_link_config()
2264 static int ip6erspan_tnl_change(struct ip6_tnl *t, in ip6erspan_tnl_change()
2278 struct ip6_tnl *t; in ip6erspan_changelink()
2297 .priv_size = sizeof(struct ip6_tnl),
2312 .priv_size = sizeof(struct ip6_tnl),
2326 .priv_size = sizeof(struct ip6_tnl),