Lines Matching refs:rt

292 		struct rtable *rt;
298 rt = ip_route_output_key(tunnel->net, &fl4);
300 if (!IS_ERR(rt)) {
301 tdev = rt->dst.dev;
302 ip_rt_put(rt);
511 struct rtable *rt, __be16 df,
524 mtu = dst_mtu(&rt->dst) - (sizeof(struct iphdr) + tunnel_hlen);
591 struct rtable *rt = NULL;
624 rt = dst_cache_get_ip4(&tun_info->dst_cache, &fl4.saddr);
625 if (!rt) {
626 rt = ip_route_output_key(tunnel->net, &fl4);
627 if (IS_ERR(rt)) {
632 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst,
635 if (rt->dst.dev == dev) {
636 ip_rt_put(rt);
643 if (tnl_update_pmtu(dev, skb, rt, df, inner_iph, tunnel_hlen,
645 ip_rt_put(rt);
657 ttl = ip4_dst_hoplimit(&rt->dst);
660 headroom += LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len;
662 ip_rt_put(rt);
668 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl,
688 struct rtable *rt = NULL; /* Route to the other host */
721 rt = skb_rtable(skb);
722 dst = rt_nexthop(rt, inner_iph->daddr);
785 rt = dst_cache_get_ip4(&tun_info->dst_cache,
788 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache,
792 if (!rt) {
793 rt = ip_route_output_key(tunnel->net, &fl4);
795 if (IS_ERR(rt)) {
800 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst,
803 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst,
807 if (rt->dst.dev == dev) {
808 ip_rt_put(rt);
817 if (tnl_update_pmtu(dev, skb, rt, df, inner_iph, 0, 0, false)) {
818 ip_rt_put(rt);
842 ttl = ip4_dst_hoplimit(&rt->dst);
845 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr)
846 + rt->dst.header_len + ip_encap_hlen(&tunnel->encap);
849 ip_rt_put(rt);
857 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,