HomeFreeBSD

netgraph/ng_bridge: Make simple internal functions read-only

Description

netgraph/ng_bridge: Make simple internal functions read-only

The data path in netgraph is designed to work on an read only state of
the whole netgraph network. Currently this is achived by convention,
there is no technical enforcment. In the case of NETGRAPH_DEBUG all
nodes can be annotated for debugging purposes, so the strict
enforcment needs to be lifted for this purpose.

This patch is part of a series to make ng_bridge multithreaded, which
is done by rewrite the data path to operate on const.

Reviewed By: kp
Differential Revision: https://reviews.freebsd.org/D28141

(cherry picked from commit 6117aa58fa4f5891badf58b13c759976983f4f04)

Details

Provenance
donnerAuthored on Jan 13 2021, 10:18 PM
Reviewer
kp
Differential Revision
D28141: netgraph/ng_bridge: Make simple internal functions read-only
Parents
R10:bfe0d8ca0b88: netgraph/ng_bridge: switch stats to counter framework
Branches
Unknown
Tags
Unknown