Lines Matching refs:mpls_nh
95 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
101 const struct mpls_nh *nh) in mpls_nh_via()
103 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh); in mpls_nh_via()
106 static unsigned int mpls_nh_header_size(const struct mpls_nh *nh) in mpls_nh_header_size()
223 static struct mpls_nh *mpls_get_nexthop(struct mpls_route *rt, u8 index) in mpls_get_nexthop()
225 return (struct mpls_nh *)((u8 *)rt->rt_nh + index * rt->rt_nh_size); in mpls_get_nexthop()
233 static const struct mpls_nh *mpls_select_multipath(struct mpls_route *rt, in mpls_select_multipath()
346 const struct mpls_nh *nh; in mpls_forward()
648 struct mpls_nh *nh, int oif) in find_outdev()
680 struct mpls_nh *nh, int oif) in mpls_nh_assign_dev()
771 struct mpls_nh *nh = rt->rt_nh; in mpls_nh_build_from_cfg()
800 struct mpls_nh *nh, int oif, struct nlattr *via, in mpls_nh_build()
2021 const struct mpls_nh *nh = rt->rt_nh; in mpls_dump_route()
2161 struct mpls_nh *nh = rt->rt_nh; in mpls_rt_uses_dev()
2242 struct mpls_nh *nh = rt->rt_nh; in lfib_nlmsg_size()
2366 const struct mpls_nh *nh; in mpls_getroute()