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()
637 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv4()
663 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_ipv6()
709 struct ip6_tnl *t = netdev_priv(dev); in prepare_ip6gre_xmit_other()
747 struct ip6_tnl *tunnel = netdev_priv(dev); in __gre6_xmit()
812 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv4()
844 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_ipv6()
887 static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl *t, in ip6gre_tnl_addr_conflict()
895 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_xmit_other()
917 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_xmit()
958 struct ip6_tnl *t = netdev_priv(dev); in ip6erspan_tunnel_xmit()
1117 static void ip6gre_tnl_link_config_common(struct ip6_tnl *t) in ip6gre_tnl_link_config_common()
1151 static void ip6gre_tnl_link_config_route(struct ip6_tnl *t, int set_mtu, in ip6gre_tnl_link_config_route()
1194 static int ip6gre_calc_hlen(struct ip6_tnl *tunnel) in ip6gre_calc_hlen()
1211 static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6gre_tnl_link_config()
1217 static void ip6gre_tnl_copy_tnl_parm(struct ip6_tnl *t, in ip6gre_tnl_copy_tnl_parm()
1240 static int ip6gre_tnl_change(struct ip6_tnl *t, const struct __ip6_tnl_parm *p, in ip6gre_tnl_change()
1290 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_tunnel_siocdevprivate()
1399 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_header()
1446 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_dev_free()
1476 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_tnl_init_features()
1498 struct ip6_tnl *tunnel; in ip6gre_tunnel_init_common()
1545 struct ip6_tnl *tunnel; in ip6gre_tunnel_init()
1568 struct ip6_tnl *tunnel = netdev_priv(dev); in ip6gre_fb_tunnel_init()
1598 struct ip6_tnl *t; in ip6gre_destroy_tunnels()
1623 ndev = alloc_netdev(sizeof(struct ip6_tnl), "ip6gre0", in ip6gre_init_net()
1877 static int ip6erspan_calc_hlen(struct ip6_tnl *tunnel) in ip6erspan_calc_hlen()
1892 struct ip6_tnl *tunnel; in ip6erspan_tap_init()
1998 struct ip6_tnl *nt; in ip6gre_newlink_common()
2032 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_newlink()
2057 static struct ip6_tnl *
2062 struct ip6_tnl *t, *nt = netdev_priv(dev); in ip6gre_changelink_common()
2095 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_changelink()
2164 struct ip6_tnl *t = netdev_priv(dev); in ip6gre_fill_info()
2265 struct ip6_tnl *nt = netdev_priv(dev); in ip6erspan_newlink()
2291 static void ip6erspan_tnl_link_config(struct ip6_tnl *t, int set_mtu) in ip6erspan_tnl_link_config()
2297 static int ip6erspan_tnl_change(struct ip6_tnl *t, in ip6erspan_tnl_change()
2311 struct ip6_tnl *t; in ip6erspan_changelink()
2330 .priv_size = sizeof(struct ip6_tnl),
2345 .priv_size = sizeof(struct ip6_tnl),
2359 .priv_size = sizeof(struct ip6_tnl),