]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Some TX dmamap cleanups.
authorAdrian Chadd <adrian@FreeBSD.org>
Tue, 2 Apr 2013 06:24:22 +0000 (06:24 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Tue, 2 Apr 2013 06:24:22 +0000 (06:24 +0000)
commita91ab3c0997a82e851cf75386a28b296aae57385
treea6f293012fd5bf1e25e8f883729e21f64fc6cf4b
parent18303fd8334cfd9f310bf502ae98c12231a5b79d
Some TX dmamap cleanups.

* Don't use BUS_DMA_ALLOCNOW for descriptor DMA maps; we never use
  bounce buffers for the descriptors themselves.

* Add some XXX's to mark where the ath_buf has its mbuf ripped from
  underneath it without actually cleaning up the dmamap.  I haven't
  audited those particular code paths to see if the DMA map is guaranteed
  to be setup there; I'll do that later.

* Print out a warning if the descdma tidyup code is given some descriptors
  w/ maps to free.  Ideally the owner will free the mbufs and unmap
  the descriptors before freeing the descriptor/ath_buf pairs, but
  right now that's not guaranteed to be done.

Reviewed by: scottl (BUS_DMA_ALLOCNOW tag)
sys/dev/ath/if_ath.c