Searched refs:nh_flags (Results 1 – 5 of 5) sorted by relevance
256 unsigned int nh_flags = READ_ONCE(nh->nh_flags); in mpls_select_multipath() local258 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() local1553 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()[all …]
95 unsigned int nh_flags; member
230 nhm->nh_flags = nh->nh_flags; in nh_fill_node()900 old->nh_flags = new->nh_flags; in replace_nexthop_single()1185 .fc_flags = cfg->nh_flags, in nh_create_ipv4()1202 nh->nh_flags = fib_nh->fib_nh_flags; in nh_create_ipv4()1221 .fc_flags = cfg->nh_flags, in nh_create_ipv6()1240 nh->nh_flags = fib6_nh->fib_nh_flags; in nh_create_ipv6()1263 nh->nh_flags = cfg->nh_flags; in nexthop_create()1359 if (nhm->nh_flags & ~NEXTHOP_VALID_USER_FLAGS) { in rtm_to_nh_config()1390 cfg->nh_flags = nhm->nh_flags; in rtm_to_nh_config()1476 if (cfg->nh_flags & RTNH_F_ONLINK) { in rtm_to_nh_config()[all …]
2127 int fib_sync_up(struct net_device *dev, unsigned char nh_flags) in fib_sync_up() argument2137 if (nh_flags & RTNH_F_DEAD) { in fib_sync_up()2141 nh_flags |= RTNH_F_LINKDOWN; in fib_sync_up()2159 if (!(nexthop_nh->fib_nh_flags & nh_flags)) { in fib_sync_up()2170 nexthop_nh->fib_nh_flags &= ~nh_flags; in fib_sync_up()2175 fi->fib_flags &= ~nh_flags; in fib_sync_up()
4529 unsigned char nh_flags; member4635 rt->fib6_nh->fib_nh_flags &= ~arg->nh_flags; in fib6_ifup()4643 void rt6_sync_up(struct net_device *dev, unsigned char nh_flags) in rt6_sync_up() argument4648 .nh_flags = nh_flags, in rt6_sync_up()4652 if (nh_flags & RTNH_F_DEAD && netif_carrier_ok(dev)) in rt6_sync_up()4653 arg.nh_flags |= RTNH_F_LINKDOWN; in rt6_sync_up()4701 unsigned char nh_flags) in rt6_multipath_nh_flags_set() argument4706 rt->fib6_nh->fib_nh_flags |= nh_flags; in rt6_multipath_nh_flags_set()4709 iter->fib6_nh->fib_nh_flags |= nh_flags; in rt6_multipath_nh_flags_set()5434 unsigned char nh_flags = 0; in rt6_fill_node() local[all …]