]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: Introduce "uplink" ports without MAC learning
authorLutz Donnerhacke <donner@FreeBSD.org>
Sat, 6 Feb 2021 10:08:24 +0000 (11:08 +0100)
committerLutz Donnerhacke <donner@FreeBSD.org>
Thu, 25 Feb 2021 08:10:30 +0000 (09:10 +0100)
commit08f47db5d580e6c7bf1ed91b7488e4d529502731
treeaa69e1c2d8b4d48c9942afa3d360fd3e40657257
parenta0e2fe87031a63f336d2a66c383cc017b6207cd1
netgraph/ng_bridge: Introduce "uplink" ports without MAC learning

The ng_bridge(4) node is designed to work in moderately small
environments. Connecting such a node to a larger network rapidly fills
the MAC table for no reason. It even become complicated to obtain data
from the gettable message, because the result is too large to
transmit.

This patch introduces, two new functionality bits on the hooks:
  - Allow or disallow MAC address learning for incoming patckets.
  - Allow or disallow sending unknown MACs through this hook.

Uplinks are characterized by denied learning while sending out
unknowns. Normal links are charaterized by allowed learning and
sending out unknowns.

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

(cherry picked from commit f961caf2184c94d6f59c8d522207156b3533d977)
share/man/man4/ng_bridge.4
sys/netgraph/ng_bridge.c
sys/netgraph/ng_bridge.h