]> 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>
Sat, 6 Feb 2021 10:09:26 +0000 (11:09 +0100)
commitf961caf2184c94d6f59c8d522207156b3533d977
tree3482f22256f85361f139150b662ca9118deb122c
parent344f1083e128d8d41ca31853dac513ca3efd9d1f
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 learing while sending out
unknowns. Normal links are charaterized by allowed learning and
sending out unknowns.

Reviewed by: kp
Approved by: kp (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D23963
share/man/man4/ng_bridge.4
sys/netgraph/ng_bridge.c
sys/netgraph/ng_bridge.h