Lines Matching refs:tunnel

56 	struct ip_tunnel *tunnel;  in vti_input()  local
61 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in vti_input()
63 if (tunnel) { in vti_input()
67 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel; in vti_input()
92 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4; in vti_rcv_cb() local
96 if (!tunnel) in vti_rcv_cb()
99 dev = tunnel->dev; in vti_rcv_cb()
111 skb->mark = be32_to_cpu(tunnel->parms.i_key); in vti_rcv_cb()
118 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev))); in vti_rcv_cb()
155 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_xmit() local
156 struct ip_tunnel_parm *parms = &tunnel->parms; in vti_xmit()
167 dst = xfrm_lookup(tunnel->net, dst, fl, NULL, 0); in vti_xmit()
187 if (tunnel->err_count > 0) { in vti_xmit()
189 tunnel->err_time + IPTUNNEL_ERR_TIMEO)) { in vti_xmit()
190 tunnel->err_count--; in vti_xmit()
193 tunnel->err_count = 0; in vti_xmit()
196 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev))); in vti_xmit()
219 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_tunnel_xmit() local
240 fl.flowi_mark = be32_to_cpu(tunnel->parms.o_key); in vti_tunnel_xmit()
250 struct ip_tunnel *tunnel; in vti4_err() local
259 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, in vti4_err()
261 if (!tunnel) in vti4_err()
264 mark = be32_to_cpu(tunnel->parms.o_key); in vti4_err()
362 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_tunnel_init() local
363 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
380 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_fb_tunnel_init() local
381 struct iphdr *iph = &tunnel->parms.iph; in vti_fb_tunnel_init()