path: root/sys/netgraph/ng_bridge.h
diff options
authorLutz Donnerhacke <donner@FreeBSD.org>2021-02-08 21:36:46 +0000
committerLutz Donnerhacke <donner@FreeBSD.org>2021-02-09 18:29:27 +0000
commitccf4cd2e7830394467d5f6cf546ab453f9657b69 (patch)
tree39cdc1cb62eeb739274110fa2d4c9164810ea771 /sys/netgraph/ng_bridge.h
parente9d419a05357036ea2fd37218d853d2c713d55cc (diff)
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 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28545
Diffstat (limited to 'sys/netgraph/ng_bridge.h')
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/netgraph/ng_bridge.h b/sys/netgraph/ng_bridge.h
index f4771cc401d4..03541deceacd 100644
--- a/sys/netgraph/ng_bridge.h
+++ b/sys/netgraph/ng_bridge.h
@@ -109,13 +109,6 @@ struct ng_bridge_link_stats {
struct ng_bridge_link;
typedef struct ng_bridge_link *link_p;
-/* Structure describing a single host */
-struct ng_bridge_host {
- u_char addr[6]; /* ethernet address */
- link_p link; /* link where addr can be found */
- u_int16_t age; /* seconds ago entry was created */
- u_int16_t staleness; /* seconds ago host last heard from */
/* external representation of the host */
struct ng_bridge_hostent {