Home
last modified time | relevance | path

Searched refs:rt0 (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/net/mpls/
H A Daf_mpls.c2534 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table() local
2546 rt0 = mpls_rt_alloc(1, lo->addr_len, 0); in resize_platform_label_table()
2547 if (IS_ERR(rt0)) in resize_platform_label_table()
2549 RCU_INIT_POINTER(rt0->rt_nh->nh_dev, lo); in resize_platform_label_table()
2550 rt0->rt_protocol = RTPROT_KERNEL; in resize_platform_label_table()
2551 rt0->rt_payload_type = MPT_IPV4; in resize_platform_label_table()
2552 rt0->rt_ttl_propagate = MPLS_TTL_PROP_DEFAULT; in resize_platform_label_table()
2553 rt0->rt_nh->nh_via_table = NEIGH_LINK_TABLE; in resize_platform_label_table()
2554 rt0->rt_nh->nh_via_alen = lo->addr_len; in resize_platform_label_table()
2555 memcpy(__mpls_nh_via(rt0, rt in resize_platform_label_table()
[all...]
/kernel/linux/linux-6.6/net/mpls/
H A Daf_mpls.c2527 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table() local
2539 rt0 = mpls_rt_alloc(1, lo->addr_len, 0); in resize_platform_label_table()
2540 if (IS_ERR(rt0)) in resize_platform_label_table()
2542 rt0->rt_nh->nh_dev = lo; in resize_platform_label_table()
2543 rt0->rt_protocol = RTPROT_KERNEL; in resize_platform_label_table()
2544 rt0->rt_payload_type = MPT_IPV4; in resize_platform_label_table()
2545 rt0->rt_ttl_propagate = MPLS_TTL_PROP_DEFAULT; in resize_platform_label_table()
2546 rt0->rt_nh->nh_via_table = NEIGH_LINK_TABLE; in resize_platform_label_table()
2547 rt0->rt_nh->nh_via_alen = lo->addr_len; in resize_platform_label_table()
2548 memcpy(__mpls_nh_via(rt0, rt in resize_platform_label_table()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Droute.c865 struct fib6_info *rt0; in rt6_select() local
875 rt0 = rcu_dereference(fn->rr_ptr); in rt6_select()
876 if (!rt0) in rt6_select()
877 rt0 = leaf; in rt6_select()
884 key_plen = rt0->fib6_dst.plen; in rt6_select()
886 if (rt0->fib6_src.plen) in rt6_select()
887 key_plen = rt0->fib6_src.plen; in rt6_select()
892 find_rr_leaf(fn, leaf, rt0, oif, strict, &do_rr, res); in rt6_select()
894 struct fib6_info *next = rcu_dereference(rt0->fib6_next); in rt6_select()
897 if (!next || next->fib6_metric != rt0 in rt6_select()
2688 rt6_update_expires(struct rt6_info *rt0, int timeout) rt6_update_expires() argument
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Droute.c868 struct fib6_info *rt0; in rt6_select() local
878 rt0 = rcu_dereference(fn->rr_ptr); in rt6_select()
879 if (!rt0) in rt6_select()
880 rt0 = leaf; in rt6_select()
887 key_plen = rt0->fib6_dst.plen; in rt6_select()
889 if (rt0->fib6_src.plen) in rt6_select()
890 key_plen = rt0->fib6_src.plen; in rt6_select()
895 find_rr_leaf(fn, leaf, rt0, oif, strict, &do_rr, res); in rt6_select()
897 struct fib6_info *next = rcu_dereference(rt0->fib6_next); in rt6_select()
900 if (!next || next->fib6_metric != rt0 in rt6_select()
2809 rt6_update_expires(struct rt6_info *rt0, int timeout) rt6_update_expires() argument
[all...]

Completed in 16 milliseconds