Lines Matching refs:mpls_route
35 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
39 static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index) in mpls_route_input_rcu()
41 struct mpls_route *rt = NULL; in mpls_route_input_rcu()
44 struct mpls_route __rcu **platform_label = in mpls_route_input_rcu()
62 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
70 static const u8 *mpls_nh_via(const struct mpls_route *rt, in mpls_nh_via()
73 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh); in mpls_nh_via()
101 static struct mpls_nh *mpls_select_multipath(struct mpls_route *rt, in mpls_select_multipath()
175 static bool mpls_egress(struct mpls_route *rt, struct sk_buff *skb, in mpls_egress()
228 struct mpls_route *rt; in mpls_forward()
365 static struct mpls_route *mpls_rt_alloc(int num_nh, u8 max_alen) in mpls_rt_alloc()
368 struct mpls_route *rt; in mpls_rt_alloc()
382 static void mpls_rt_free(struct mpls_route *rt) in mpls_rt_free()
389 struct mpls_route *old, struct mpls_route *new, in mpls_notify_route()
395 struct mpls_route *rt = new ? new : old; in mpls_notify_route()
403 struct mpls_route *new, in mpls_route_update()
406 struct mpls_route __rcu **platform_label; in mpls_route_update()
407 struct mpls_route *rt; in mpls_route_update()
423 struct mpls_route __rcu **platform_label; in find_free_label()
498 struct mpls_route *rt, in find_outdev()
530 static int mpls_nh_assign_dev(struct net *net, struct mpls_route *rt, in mpls_nh_assign_dev()
561 struct mpls_route *rt) in mpls_nh_build_from_cfg()
594 static int mpls_nh_build(struct net *net, struct mpls_route *rt, in mpls_nh_build()
667 struct mpls_route *rt) in mpls_nh_build_multi()
719 struct mpls_route __rcu **platform_label; in mpls_route_add()
721 struct mpls_route *rt, *old; in mpls_route_add()
896 struct mpls_route __rcu **platform_label; in mpls_ifdown()
903 struct mpls_route *rt = rtnl_dereference(platform_label[index]); in mpls_ifdown()
1221 u32 label, struct mpls_route *rt, int flags) in mpls_dump_route()
1302 struct mpls_route __rcu **platform_label; in mpls_dump_routes()
1315 struct mpls_route *rt; in mpls_dump_routes()
1330 static inline size_t lfib_nlmsg_size(struct mpls_route *rt) in lfib_nlmsg_size()
1364 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt, in rtmsg_lfib()
1393 size_t size = sizeof(struct mpls_route *) * limit; in resize_platform_label_table()
1396 struct mpls_route __rcu **labels = NULL, **old; in resize_platform_label_table()
1397 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table()
1449 cp_size = old_limit * sizeof(struct mpls_route *); in resize_platform_label_table()
1546 struct mpls_route __rcu **platform_label; in mpls_net_exit()
1568 struct mpls_route *rt = rtnl_dereference(platform_label[index]); in mpls_net_exit()