Home
last modified time | relevance | path

Searched refs:itn (Results 1 – 4 of 4) sorted by relevance

/net/ipv4/
Dip_tunnel.c83 struct ip_tunnel *ip_tunnel_lookup(struct ip_tunnel_net *itn, in ip_tunnel_lookup() argument
94 head = &itn->tunnels[hash]; in ip_tunnel_lookup()
127 head = &itn->tunnels[hash]; in ip_tunnel_lookup()
162 t = rcu_dereference(itn->collect_md_tun); in ip_tunnel_lookup()
166 ndev = READ_ONCE(itn->fb_tunnel_dev); in ip_tunnel_lookup()
174 static struct hlist_head *ip_bucket(struct ip_tunnel_net *itn, in ip_bucket() argument
190 return &itn->tunnels[h]; in ip_bucket()
193 static void ip_tunnel_add(struct ip_tunnel_net *itn, struct ip_tunnel *t) in ip_tunnel_add() argument
195 struct hlist_head *head = ip_bucket(itn, &t->parms); in ip_tunnel_add()
198 rcu_assign_pointer(itn->collect_md_tun, t); in ip_tunnel_add()
[all …]
Dip_gre.c139 struct ip_tunnel_net *itn; in ipgre_err() local
147 itn = net_generic(net, gre_tap_net_id); in ipgre_err()
150 itn = net_generic(net, erspan_net_id); in ipgre_err()
152 itn = net_generic(net, ipgre_net_id); in ipgre_err()
155 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, in ipgre_err()
268 struct ip_tunnel_net *itn; in erspan_rcv() local
275 itn = net_generic(net, erspan_net_id); in erspan_rcv()
279 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, in erspan_rcv()
290 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, in erspan_rcv()
357 struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) in __ipgre_rcv() argument
[all …]
Dip_vti.c53 struct ip_tunnel_net *itn = net_generic(net, vti_net_id); in vti_input() local
55 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in vti_input()
324 struct ip_tunnel_net *itn = net_generic(net, vti_net_id); in vti4_err() local
326 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in vti4_err()
502 struct ip_tunnel_net *itn; in vti_init_net() local
507 itn = net_generic(net, vti_net_id); in vti_init_net()
508 if (itn->fb_tunnel_dev) in vti_init_net()
509 vti_fb_tunnel_init(itn->fb_tunnel_dev); in vti_init_net()
Dipip.c131 struct ip_tunnel_net *itn = net_generic(net, ipip_net_id); in ipip_err() local
138 t = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in ipip_err()
215 struct ip_tunnel_net *itn = net_generic(net, ipip_net_id); in ipip_tunnel_rcv() local
221 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in ipip_tunnel_rcv()