summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_input.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-09 05:15:59 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-09 05:15:59 +0000
commit1845f530cba5145fb492c5215954971bef542381 (patch)
tree21df01e71ba8d154af722897352cec4ae7000c17 /sys/netipx/ipx_input.c
parent056eceb4700e1ba69510991224a31bf6399bdc5d (diff)
downloadFreeBSD-src-1845f530cba5145fb492c5215954971bef542381.zip
FreeBSD-src-1845f530cba5145fb492c5215954971bef542381.tar.gz
Protect ipx_pexseq with the IPX PCB list mutex.
When processing socket options against IPX PCBs, generally protect PCB fields using the IPX PCB mutex. Where possible, use unlocked reads on integer values to avoid locking overhead. MFC after: 3 weeks
Diffstat (limited to 'sys/netipx/ipx_input.c')
-rw-r--r--sys/netipx/ipx_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index d0d01a4..ee1ca23 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -95,7 +95,7 @@ struct ipxpcbhead ipxrawpcb_list;
static int ipxqmaxlen = IFQ_MAXLEN;
static struct ifqueue ipxintrq;
-long ipx_pexseq;
+long ipx_pexseq; /* Locked with ipxpcb_list_mtx. */
static int ipx_do_route(struct ipx_addr *src, struct route *ro);
static void ipx_undo_route(struct route *ro);
OpenPOWER on IntegriCloud