Date: Tue, 12 May 2009 22:42:13 +0400 From: Stanislav Sedov <stas@FreeBSD.org> To: John Baldwin <jhb@freebsd.org> Cc: Stanislav Sedov <stas@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r192018 - head/sys/arm/at91 Message-ID: <20090512224213.f80f2fd3.stas@FreeBSD.org> In-Reply-To: <200905121217.06048.jhb@freebsd.org> References: <200905121607.n4CG78wX026915@svn.freebsd.org> <200905121217.06048.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 May 2009 12:17:05 -0400 John Baldwin <jhb@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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090512224213.f80f2fd3.stas>