HomeFreeBSD

netgraph/ng_bridge: Introduce "uplink" ports without MAC learning

Description

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
Differential Revision: https://reviews.freebsd.org/D23963

(cherry picked from commit f961caf2184c94d6f59c8d522207156b3533d977)

Details

Provenance
donnerAuthored on Feb 6 2021, 10:08 AM
Reviewer
kp
Differential Revision
D23963: netgraph/ng_bridge: Introduce "uplink" ports without MAC learning
Parents
rG5dbb407145c8: MFC jail: Change both root and working directories in jail_attach(2)
Branches
Unknown
Tags
Unknown