On Tue, 12 May 2009 12:17:05 -0400 John Baldwin <j...@freebsd.org> mentioned:
> On Tuesday 12 May 2009 12:07:08 pm Stanislav Sedov wrote: > > Author: stas > > Date: Tue May 12 16:07:08 2009 > > New Revision: 192018 > > URL: http://svn.freebsd.org/changeset/base/192018 > > > > Log: > > - Implement detach path. > > - Release memory and DMA resources on stop. > > - Unload the associated DMA maps after transmit is complete. > > Most NIC drivers that I am familiar with do not destroy DMA resources (tags > and maps) during stop() and then create them during if_init(). Instead, they > create those during attach() and detach(). They do tend to populate the RX > ring with buffers during if_init() and free all of the mbus during stop() > though. > Well, probably my commit message was slightly wrong. I do not destroy DMA maps and tags in the stop routine, instead I free all allocated mbufs and unload DMA maps associated with them. -- Stanislav Sedov ST4096-RIPE !DSPAM:4a09c2ee994291210395111! _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"