Home
last modified time | relevance | path

Searched refs:last_id_allocated (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/include/net/netns/
Dnexthop.h16 u32 last_id_allocated; member
/linux-5.19.10/net/ipv4/
Dnexthop.c602 u32 id_start = net->nexthop.last_id_allocated; in nh_find_unused_id()
605 net->nexthop.last_id_allocated++; in nh_find_unused_id()
606 if (net->nexthop.last_id_allocated == id_start) in nh_find_unused_id()
609 if (!nexthop_find_by_id(net, net->nexthop.last_id_allocated)) in nh_find_unused_id()
610 return net->nexthop.last_id_allocated; in nh_find_unused_id()