Home
last modified time | relevance | path

Searched refs:nh_flags (Results 1 – 5 of 5) sorted by relevance

/net/mpls/
Daf_mpls.c256 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()
[all …]
Dinternal.h95 unsigned int nh_flags; member
/net/ipv4/
Dnexthop.c230 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 …]
Dfib_semantics.c2127 int fib_sync_up(struct net_device *dev, unsigned char nh_flags) in fib_sync_up() argument
2137 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()
/net/ipv6/
Droute.c4529 unsigned char nh_flags; member
4635 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() argument
4648 .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() argument
4706 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 …]