Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156893226
D28123.id82224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28123.id82224.diff
View Options
Index: sys/netgraph/ng_bridge.c
===================================================================
--- sys/netgraph/ng_bridge.c
+++ sys/netgraph/ng_bridge.c
@@ -93,6 +93,7 @@
u_int16_t loopCount; /* loop ignore timer */
struct ng_bridge_link_stats stats; /* link stats */
};
+typedef struct ng_bridge_link const *link_cp; /* read only access */
/* Per-node private data */
struct ng_bridge_private {
@@ -107,6 +108,7 @@
struct callout timer; /* one second periodic timer */
};
typedef struct ng_bridge_private *priv_p;
+typedef struct ng_bridge_private const *priv_cp; /* read only access */
/* Information about a host, stored in a hash table entry */
struct ng_bridge_hent {
@@ -315,6 +317,12 @@
* GB ethernets so it should be fixed.
* When it's fixed the process SHOULD NOT SLEEP, spinlocks please!
* (and atomic ops )
+ *
+ * TODO:
+ * - revdata path works on const node data
+ * - modify the the host table via control messages only
+ * - stat used the counter framework
+ * - remove the WRITER limitation
*/
NG_NODE_FORCE_WRITER(node);
NG_NODE_SET_PRIVATE(node, priv);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 3:36 AM (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33231868
Default Alt Text
D28123.id82224.diff (1 KB)
Attached To
Mode
D28123: netgraph/ng_bridge: become multithreaded
Attached
Detach File
Event Timeline
Log In to Comment