summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-17 00:11:56 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-17 00:11:56 +0000
commitd0147f27c78887e74c73b5157a363120412f0c73 (patch)
tree164baa9612198ea7b9d07b6fd310961477947985 /sys/net/if.c
parent43e7c1af8b2db7fbcfc5f57130190bc06d3eb7ae (diff)
downloadFreeBSD-src-d0147f27c78887e74c73b5157a363120412f0c73.zip
FreeBSD-src-d0147f27c78887e74c73b5157a363120412f0c73.tar.gz
convert ifnet and afdata locks from mutexes to rwlocks
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 6f829b7..9f0b063 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -158,7 +158,7 @@ static struct knlist ifklist;
#endif
int ifqmaxlen = IFQ_MAXLEN;
-struct mtx ifnet_lock;
+struct rwlock ifnet_lock;
static if_com_alloc_t *if_com_alloc[256];
static if_com_free_t *if_com_free[256];
OpenPOWER on IntegriCloud