HomeFreeBSD

netgraph/ng_bridge: Add counters for the first link, too

Description

netgraph/ng_bridge: Add counters for the first link, too

For broadcast, multicast and unknown unicast, the replication loop
sends a copy of the packet to each link, beside the first one. This
special path is handled later, but the counters are not updated.
Factor out the common send and count actions as a function.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D28537

(cherry picked from commit 3c958f5fdfc01b7579ea0fbfc3f15f8a85bebee9)

Details

Provenance
donnerAuthored on Feb 10 2021, 10:47 AM
Reviewer
kp
Differential Revision
D28537: netgraph/ng_bridge: Add counters for the first link, too.
Parents
rG88e916bff035: netgraph/ng_bridge: Document staleness in multithreaded operation
Branches
Unknown
Tags
Unknown