Page MenuHomeFreeBSD

D28123.id82224.diff
No OneTemporary

D28123.id82224.diff

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

Mime Type
text/plain
Expires
Mon, May 18, 3:53 AM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33231868
Default Alt Text
D28123.id82224.diff (1 KB)

Event Timeline