Lines Matching refs:rt
272 struct rtable *rt; in vrf_send_v4_prep() local
275 rt = ip_route_output_flow(dev_net(vrf_dev), fl4, NULL); in vrf_send_v4_prep()
276 if (IS_ERR(rt)) in vrf_send_v4_prep()
280 if (rt->rt_type != RTN_UNICAST && rt->rt_type != RTN_LOCAL) { in vrf_send_v4_prep()
281 ip_rt_put(rt); in vrf_send_v4_prep()
286 skb_dst_set(skb, &rt->dst); in vrf_send_v4_prep()
517 struct rtable *rt = (struct rtable *)dst; in vrf_finish_output() local
542 nexthop = (__force u32)rt_nexthop(rt, ip_hdr(skb)->daddr); in vrf_finish_output()
844 struct rt6_info *rt = NULL; in vrf_get_rt6_dst() local
849 rt = vrf->rt6; in vrf_get_rt6_dst()
850 atomic_inc(&rt->dst.__refcnt); in vrf_get_rt6_dst()
853 return (struct dst_entry *)rt; in vrf_get_rt6_dst()