Lines Matching refs:tun_info
589 struct ip_tunnel_info *tun_info;
598 tun_info = skb_tunnel_info(skb);
599 if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) ||
600 ip_tunnel_info_af(tun_info) != AF_INET))
602 key = &tun_info->key;
618 tunnel_hlen = ip_encap_hlen(&tun_info->encap);
620 if (ip_tunnel_encap(skb, &tun_info->encap, &proto, &fl4) < 0)
623 use_cache = ip_tunnel_dst_cache_usable(skb, tun_info);
625 rt = dst_cache_get_ip4(&tun_info->dst_cache, &fl4.saddr);
633 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst,
686 struct ip_tunnel_info *tun_info = NULL;
714 tun_info = skb_tunnel_info(skb);
715 if (tun_info && (tun_info->mode & IP_TUNNEL_INFO_TX) &&
716 ip_tunnel_info_af(tun_info) == AF_INET &&
717 tun_info->key.u.ipv4.dst) {
718 dst = tun_info->key.u.ipv4.dst;
784 use_cache = ip_tunnel_dst_cache_usable(skb, tun_info);
786 rt = dst_cache_get_ip4(&tun_info->dst_cache,
801 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst,