HomeFreeBSD

netgraph/ng_bridge: Handle send errors during loop handling

Description

netgraph/ng_bridge: Handle send errors during loop handling

If sending out a packet fails during the loop over all links, the
allocated memory is leaked and not all links receive a copy. This
patch fixes those problems, clarifies a premature abort of the loop,
and fixes a minory style(9) bug.

PR: 255430
Submitted by: Dancho Penev
Tested by: Dancho Penev
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30008

Details

Provenance
donnerAuthored on Apr 27 2021, 7:49 AM
Differential Revision
D30008: netgraph/ng_bridge: Handle send errors during loop processing
Parents
rG4dfe70fdbda0: netgraph/ng_bridge: Avoid cache thrashing
Branches
Unknown
Tags
Unknown