HomeFreeBSD

if_vmove: return proper error status

Description

if_vmove: return proper error status

if_vmove can fail if it lost a race and the vnet's already been moved. The
callers (and their callers) can generally cope with this, but right now
success is assumed. Plumb out the ENOENT from if_detach_internal if it
happens so that the error's properly reported to userland.

Reviewed by: bz, kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D22780

Details

Provenance
kevansAuthored on Jan 9 2020, 3:52 AM
Parents
rG4a8b575c6baa: uma: unify layout paths and improve efficiency
Branches
Unknown
Tags
Unknown
Reverted By
D48820: ifnet: Make if_detach_internal() and if_vmove() void