HomeFreeBSD

if_wg: avoid sleeping under the net epoch

Description

if_wg: avoid sleeping under the net epoch

No sleeping allowed here, so avoid it. Collect the subset of data we
want inside of the epoch, as we'll need extra allocations when we add
items to the nvlist.

Reviewed by: grehan (earlier version), markj
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29124

Details

Provenance
kevansAuthored on Mar 8 2021, 6:06 AM
Reviewer
grehan
Differential Revision
D29124: if_wg: avoid sleeping under the net epoch
Parents
rGbae59285f932: if_wg: return to m_defrag() of incoming mbuf, sans leak
Branches
Unknown
Tags
Unknown