HomeFreeBSD

ifnet: merge ifindex_alloc(), ifnet_setbyindex(), if_grow() and call magic

Description

ifnet: merge ifindex_alloc(), ifnet_setbyindex(), if_grow() and call magic

Now it is possible to just merge all this complexity into single
linear function. Note that IFNET_WLOCK() is a sleepable lock, so
we can M_WAITOK and epoch_wait_preempt().

Reviewed by: melifaro, bz, kp
Differential revision: https://reviews.freebsd.org/D33262

Details

Provenance
glebiusAuthored on Dec 4 2021, 5:49 PM
Reviewer
melifaro
Differential Revision
D33262: ifnet: merge ifindex_alloc(), ifnet_setbyindex(), if_grow() and call magic
Parents
rG6ff4cac2ee9e: ifnet: initial if_grow() shall always succeed
Branches
Unknown
Tags
Unknown