Lines Matching refs:nh_flags
256 unsigned int nh_flags = READ_ONCE(nh->nh_flags); in mpls_select_multipath() local
258 if (nh_flags & (RTNH_F_DEAD | RTNH_F_LINKDOWN)) in mpls_select_multipath()
702 nh->nh_flags |= RTNH_F_DEAD; in mpls_nh_assign_dev()
708 nh->nh_flags |= RTNH_F_LINKDOWN; in mpls_nh_assign_dev()
788 if (nh->nh_flags & (RTNH_F_DEAD | RTNH_F_LINKDOWN)) in mpls_nh_build_from_cfg()
922 if (nh->nh_flags & (RTNH_F_DEAD | RTNH_F_LINKDOWN)) in mpls_nh_build_multi()
1545 unsigned int nh_flags = nh->nh_flags; in mpls_ifdown() local
1553 nh_flags |= RTNH_F_DEAD; in mpls_ifdown()
1556 nh_flags |= RTNH_F_LINKDOWN; in mpls_ifdown()
1562 if (nh->nh_flags != nh_flags) in mpls_ifdown()
1563 WRITE_ONCE(nh->nh_flags, nh_flags); in mpls_ifdown()
1565 if (!(nh_flags & (RTNH_F_DEAD | RTNH_F_LINKDOWN))) in mpls_ifdown()
1594 unsigned int nh_flags = nh->nh_flags; in mpls_ifup() local
1598 if (!(nh_flags & flags)) { in mpls_ifup()
1605 nh_flags &= ~flags; in mpls_ifup()
1606 WRITE_ONCE(nh->nh_flags, nh_flags); in mpls_ifup()
2050 if (nh->nh_flags & RTNH_F_LINKDOWN) in mpls_dump_route()
2052 if (nh->nh_flags & RTNH_F_DEAD) in mpls_dump_route()
2074 if (nh->nh_flags & RTNH_F_LINKDOWN) { in mpls_dump_route()
2078 if (nh->nh_flags & RTNH_F_DEAD) { in mpls_dump_route()