cvs commit: src/sys/compat/ndis ndis_var.h subr_ndis.c
Bill Paul
wpaul at FreeBSD.org
Thu Mar 3 03:51:02 GMT 2005
wpaul 2005-03-03 03:51:02 UTC
FreeBSD src repository
Modified files:
sys/compat/ndis ndis_var.h subr_ndis.c
Log:
MAXPATHLEN is 1024, which means NdisOpenFile() and ndis_find_sym() were
both consuming 1K of stack space. This is unfriendly. Allocate the buffers
off the heap instead. It's a little slower, but these aren't performance
critical routines.
Also, add a spinlock to NdisAllocatePacketPool(), NdisAllocatePacket(),
NdisFreePacketPool() and NdisFreePacket(). The pool is maintained as a
linked list. I don't know for a fact that it can be corrupted, but why
take chances.
Revision Changes Path
1.35 +1 -0 src/sys/compat/ndis/ndis_var.h
1.76 +59 -17 src/sys/compat/ndis/subr_ndis.c
More information about the cvs-src
mailing list