summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
commit88f8de4d4001c74946458579ca0710df70161c90 (patch)
tree55b9efd9d8e3a027a51c2539777939228ae3532b /sys/netgraph
parentbfbc302bca72638c26907b5b0ee204eab992fdde (diff)
downloadFreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.zip
FreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.tar.gz
Remove unused VNET_SET() and related macros; only VNET_GET() is
ever actually used. Rename VNET_GET() to VNET() to shorten variable references. Discussed with: bz, julian Reviewed by: bz Approved by: re (kensmith, kib)
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c6
-rw-r--r--sys/netgraph/ng_eiface.c2
-rw-r--r--sys/netgraph/ng_iface.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 9eb99d5..084c676 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -177,7 +177,7 @@ static struct mtx ng_typelist_mtx;
/* Hash related definitions */
/* XXX Don't need to initialise them because it's a LIST */
static VNET_DEFINE(LIST_HEAD(, ng_node), ng_ID_hash[NG_ID_HASH_SIZE]);
-#define V_ng_ID_hash VNET_GET(ng_ID_hash)
+#define V_ng_ID_hash VNET(ng_ID_hash)
static struct mtx ng_idhash_mtx;
/* Method to find a node.. used twice so do it here */
@@ -195,7 +195,7 @@ static struct mtx ng_idhash_mtx;
} while (0)
static VNET_DEFINE(LIST_HEAD(, ng_node), ng_name_hash[NG_NAME_HASH_SIZE]);
-#define V_ng_name_hash VNET_GET(ng_name_hash)
+#define V_ng_name_hash VNET(ng_name_hash)
static struct mtx ng_namehash_mtx;
#define NG_NAMEHASH(NAME, HASH) \
@@ -365,7 +365,7 @@ ng_alloc_node(void)
#endif
static VNET_DEFINE(ng_ID_t, nextID) = 1;
-#define V_nextID VNET_GET(nextID)
+#define V_nextID VNET(nextID)
#ifdef INVARIANTS
#define CHECK_DATA_MBUF(m) do { \
diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c
index 9969924..fb43eef 100644
--- a/sys/netgraph/ng_eiface.c
+++ b/sys/netgraph/ng_eiface.c
@@ -117,7 +117,7 @@ static vnet_attach_fn ng_eiface_iattach;
static vnet_detach_fn ng_eiface_idetach;
static VNET_DEFINE(struct unrhdr *, ng_eiface_unit);
-#define V_ng_eiface_unit VNET_GET(ng_eiface_unit)
+#define V_ng_eiface_unit VNET(ng_eiface_unit)
#ifdef VIMAGE
static vnet_modinfo_t vnet_ng_eiface_modinfo = {
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index 7743b2b..6ed1daf6 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -213,7 +213,7 @@ static vnet_attach_fn ng_iface_iattach;
static vnet_detach_fn ng_iface_idetach;
static VNET_DEFINE(struct unrhdr *, ng_iface_unit);
-#define V_ng_iface_unit VNET_GET(ng_iface_unit)
+#define V_ng_iface_unit VNET(ng_iface_unit)
#ifdef VIMAGE
static vnet_modinfo_t vnet_ng_iface_modinfo = {
OpenPOWER on IntegriCloud