HomeFreeBSD

ifnet: allocate index at the end of if_alloc_domain()

Description

ifnet: allocate index at the end of if_alloc_domain()

Now that if_alloc_domain() never fails and actually doesn't
expose ifnet to outside we can eliminate IFNET_HOLD and two
step index allocation.

Reviewed by: kp
Differential revision: https://reviews.freebsd.org/D33259

Details

Provenance
glebiusAuthored on Dec 4 2021, 5:49 PM
Reviewer
kp
Differential Revision
D33259: ifnet: allocate index at the end of if_alloc_domain()
Parents
rG8f07932272c4: nvme_sim: Only report PCI related stats when we can
Branches
Unknown
Tags
Unknown