svn commit: r192018 - head/sys/arm/at91
stas at FreeBSD.org
Tue May 12 18:41:52 UTC 2009
On Tue, 12 May 2009 12:17:05 -0400
John Baldwin <jhb at 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()
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.
More information about the svn-src-all