HomeFreeBSD

MFC r324672:

Description

MFC r324672:
ifnet(9): split ifc_alloc_unit() (should simplify code flow)

Allocate smallest unit number from pool via ifc_alloc_unit_next()
and exact unit number (if available) via ifc_alloc_unit_specific().

While here, address possible deadlock (mentioned in PR).

PR: 217401
Differential Revision: https://reviews.freebsd.org/D12551

Details

Provenance
avosAuthored on
Differential Revision
D12551: ifnet(9): split ifc_alloc_unit() (should make code a bit cleaner).
Parents
rS324812: MFC r324672:
Branches
Unknown
Tags
Unknown