Date: Thu, 3 Mar 2005 03:51:02 +0000 (UTC) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis ndis_var.h subr_ndis.c Message-ID: <200503030351.j233p2d7035374@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503030351.j233p2d7035374>