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
Approved by: kp (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D23963

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
rG344f1083e128: ipfilter: Use the softn (NAT softc) host map size in ip_nat6 calculation.
Branches
Unknown
Tags
Unknown