Lines Matching refs:nt
349 struct ip6_tnl *t, *nt; in ip6gre_tunnel_locate() local
374 nt = netdev_priv(dev); in ip6gre_tunnel_locate()
375 nt->parms = *parms; in ip6gre_tunnel_locate()
378 nt->dev = dev; in ip6gre_tunnel_locate()
379 nt->net = dev_net(dev); in ip6gre_tunnel_locate()
384 ip6gre_tnl_link_config(nt, 1); in ip6gre_tunnel_locate()
387 if (!(nt->parms.o_flags & TUNNEL_SEQ)) in ip6gre_tunnel_locate()
390 ip6gre_tunnel_link(ign, nt); in ip6gre_tunnel_locate()
391 return nt; in ip6gre_tunnel_locate()
1440 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_tnl_init_features() local
1445 if (!(nt->parms.o_flags & TUNNEL_SEQ)) { in ip6gre_tnl_init_features()
1450 if (!(nt->parms.o_flags & TUNNEL_CSUM) || in ip6gre_tnl_init_features()
1451 nt->encap.type == TUNNEL_ENCAP_NONE) { in ip6gre_tnl_init_features()
1965 struct ip6_tnl *nt; in ip6gre_newlink_common() local
1969 nt = netdev_priv(dev); in ip6gre_newlink_common()
1972 int err = ip6_tnl_encap_setup(nt, &ipencap); in ip6gre_newlink_common()
1981 nt->dev = dev; in ip6gre_newlink_common()
1982 nt->net = dev_net(dev); in ip6gre_newlink_common()
1999 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_newlink() local
2004 ip6gre_netlink_parms(data, &nt->parms); in ip6gre_newlink()
2007 if (nt->parms.collect_md) { in ip6gre_newlink()
2011 if (ip6gre_tunnel_find(net, &nt->parms, dev->type)) in ip6gre_newlink()
2017 ip6gre_tnl_link_config(nt, !tb[IFLA_MTU]); in ip6gre_newlink()
2018 ip6gre_tunnel_link_md(ign, nt); in ip6gre_newlink()
2019 ip6gre_tunnel_link(net_generic(net, ip6gre_net_id), nt); in ip6gre_newlink()
2029 struct ip6_tnl *t, *nt = netdev_priv(dev); in ip6gre_changelink_common() local
2030 struct net *net = nt->net; in ip6gre_changelink_common()
2038 int err = ip6_tnl_encap_setup(nt, &ipencap); in ip6gre_changelink_common()
2052 t = nt; in ip6gre_changelink_common()
2232 struct ip6_tnl *nt = netdev_priv(dev); in ip6erspan_newlink() local
2237 ip6gre_netlink_parms(data, &nt->parms); in ip6erspan_newlink()
2238 ip6erspan_set_version(data, &nt->parms); in ip6erspan_newlink()
2241 if (nt->parms.collect_md) { in ip6erspan_newlink()
2245 if (ip6gre_tunnel_find(net, &nt->parms, dev->type)) in ip6erspan_newlink()
2251 ip6erspan_tnl_link_config(nt, !tb[IFLA_MTU]); in ip6erspan_newlink()
2252 ip6erspan_tunnel_link_md(ign, nt); in ip6erspan_newlink()
2253 ip6gre_tunnel_link(net_generic(net, ip6gre_net_id), nt); in ip6erspan_newlink()