Lines Matching refs:rth
60 struct rtable *rth; member
573 struct dst_entry *dst = (struct dst_entry *)vrf->rth; in vrf_rtable_destroy()
576 vrf->rth = NULL; in vrf_rtable_destroy()
582 struct rtable *rth; in vrf_rtable_create() local
584 rth = dst_alloc(&vrf_dst_ops, dev, 2, in vrf_rtable_create()
587 if (rth) { in vrf_rtable_create()
588 rth->dst.output = vrf_output; in vrf_rtable_create()
589 rth->rt_genid = rt_genid_ipv4(dev_net(dev)); in vrf_rtable_create()
590 rth->rt_flags = 0; in vrf_rtable_create()
591 rth->rt_type = RTN_UNICAST; in vrf_rtable_create()
592 rth->rt_is_input = 0; in vrf_rtable_create()
593 rth->rt_iif = 0; in vrf_rtable_create()
594 rth->rt_pmtu = 0; in vrf_rtable_create()
595 rth->rt_gateway = 0; in vrf_rtable_create()
596 rth->rt_uses_gateway = 0; in vrf_rtable_create()
597 rth->rt_table_id = vrf->tb_id; in vrf_rtable_create()
598 INIT_LIST_HEAD(&rth->rt_uncached); in vrf_rtable_create()
599 rth->rt_uncached_list = NULL; in vrf_rtable_create()
602 return rth; in vrf_rtable_create()
754 vrf->rth = vrf_rtable_create(dev); in vrf_dev_init()
755 if (!vrf->rth) in vrf_dev_init()
793 struct rtable *rth = NULL; in vrf_get_rtable() local
798 rth = vrf->rth; in vrf_get_rtable()
799 atomic_inc(&rth->dst.__refcnt); in vrf_get_rtable()
802 return rth; in vrf_get_rtable()