HomeFreeBSD

netgraph/ng_bridge: Merge internal structures

Description

netgraph/ng_bridge: Merge internal structures

In a earlier version of ng_bridge(4) the exernal visible host entry
structure was a strict subset of the internal one. So internal view
was a direct annotation of the external structure. This strict
inheritance was lost many versions ago. There is no need to
encapsulate a part of the internal represntation as a separate
structure.

This patch is a preparation to make the internal structure read only
in the data path in order to make ng_bridge(4) multithreaded.

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

(cherry picked from commit ccf4cd2e7830394467d5f6cf546ab453f9657b69)

Details

Provenance
donnerAuthored on Feb 8 2021, 9:36 PM
Reviewer
kp
Differential Revision
D28545: netgraph/ng_bridge: Merge internal host entry structures.
Parents
rG1e2c1b762275: netgraph/ng_bridge: Make simple internal functions read-only
Branches
Unknown
Tags
Unknown