]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r324672:
authoravos <avos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 21 Oct 2017 10:48:06 +0000 (10:48 +0000)
committeravos <avos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 21 Oct 2017 10:48:06 +0000 (10:48 +0000)
commit3a2c845348684a2fc1bc1f932028d9fa79aa4ead
tree8b7cbd64119adc665234fa920508624a15b4a2d5
parent766498ade2721c22fd9fc6b4f87586ca125fd0a5
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@324813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_clone.c