]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: Add counters for the first link, too
authorLutz Donnerhacke <donner@FreeBSD.org>
Wed, 10 Feb 2021 10:47:38 +0000 (11:47 +0100)
committerLutz Donnerhacke <donner@FreeBSD.org>
Mon, 22 Feb 2021 08:22:03 +0000 (09:22 +0100)
commitdcb4190179bd5588b28286828d65d50b9ba182cc
treeb896d7f84cd4f4c2e1fc4e9971b0e5b8a7eed49e
parent88e916bff0357ffd0a4b8844cc03c79fcaa2022c
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)
sys/netgraph/ng_bridge.c