Lines Matching refs:mpls_route
73 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
77 static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index) in mpls_route_input_rcu()
79 struct mpls_route *rt = NULL; in mpls_route_input_rcu()
82 struct mpls_route __rcu **platform_label = in mpls_route_input_rcu()
95 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
100 static const u8 *mpls_nh_via(const struct mpls_route *rt, in mpls_nh_via()
103 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh); in mpls_nh_via()
156 static u32 mpls_multipath_hash(struct mpls_route *rt, struct sk_buff *skb) in mpls_multipath_hash()
223 static struct mpls_nh *mpls_get_nexthop(struct mpls_route *rt, u8 index) in mpls_get_nexthop()
233 static const struct mpls_nh *mpls_select_multipath(struct mpls_route *rt, in mpls_select_multipath()
269 static bool mpls_egress(struct net *net, struct mpls_route *rt, in mpls_egress()
347 struct mpls_route *rt; in mpls_forward()
510 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc()
513 struct mpls_route *rt; in mpls_rt_alloc()
532 static void mpls_rt_free(struct mpls_route *rt) in mpls_rt_free()
539 struct mpls_route *old, struct mpls_route *new, in mpls_notify_route()
545 struct mpls_route *rt = new ? new : old; in mpls_notify_route()
553 struct mpls_route *new, in mpls_route_update()
556 struct mpls_route __rcu **platform_label; in mpls_route_update()
557 struct mpls_route *rt; in mpls_route_update()
573 struct mpls_route __rcu **platform_label; in find_free_label()
647 struct mpls_route *rt, in find_outdev()
679 static int mpls_nh_assign_dev(struct net *net, struct mpls_route *rt, in mpls_nh_assign_dev()
768 struct mpls_route *rt) in mpls_nh_build_from_cfg()
799 static int mpls_nh_build(struct net *net, struct mpls_route *rt, in mpls_nh_build()
885 struct mpls_route *rt, u8 max_labels, in mpls_nh_build_multi()
965 struct mpls_route __rcu **platform_label; in mpls_route_add()
967 struct mpls_route *rt, *old; in mpls_route_add()
1500 struct mpls_route __rcu **platform_label; in mpls_ifdown()
1506 struct mpls_route *rt = rtnl_dereference(platform_label[index]); in mpls_ifdown()
1532 struct mpls_route *orig = rt; in mpls_ifdown()
1576 struct mpls_route __rcu **platform_label; in mpls_ifup()
1583 struct mpls_route *rt = rtnl_dereference(platform_label[index]); in mpls_ifup()
1988 u32 label, struct mpls_route *rt, int flags) in mpls_dump_route()
2157 static bool mpls_rt_uses_dev(struct mpls_route *rt, in mpls_rt_uses_dev()
2179 struct mpls_route __rcu **platform_label; in mpls_dump_routes()
2214 struct mpls_route *rt; in mpls_dump_routes()
2234 static inline size_t lfib_nlmsg_size(struct mpls_route *rt) in lfib_nlmsg_size()
2271 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt, in rtmsg_lfib()
2368 struct mpls_route *rt; in mpls_getroute()
2521 size_t size = sizeof(struct mpls_route *) * limit; in resize_platform_label_table()
2524 struct mpls_route __rcu **labels = NULL, **old; in resize_platform_label_table()
2525 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table()
2576 cp_size = old_limit * sizeof(struct mpls_route *); in resize_platform_label_table()
2702 struct mpls_route __rcu **platform_label; in mpls_net_exit()
2724 struct mpls_route *rt = rtnl_dereference(platform_label[index]); in mpls_net_exit()