]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix breakage introduced in r238824 - correctly calculate the descriptor
authoradrian <adrian@FreeBSD.org>
Sun, 29 Jul 2012 08:52:32 +0000 (08:52 +0000)
committeradrian <adrian@FreeBSD.org>
Sun, 29 Jul 2012 08:52:32 +0000 (08:52 +0000)
commit42e4d592441c659494072ebb7868dfa5f52299b8
tree2785457362e403e309490dd7011999df00798a17
parentd97d8a1634024b638502d49688fb426fe4e091df
Fix breakage introduced in r238824 - correctly calculate the descriptor
wrapping.

The previous code was only wrapping descriptor "block" boundaries rather
than individual descriptors.  It sounds equivalent but it isn't.

r238824 changed the descriptor allocation to enforce that an individual
descriptor doesn't wrap a 4KiB boundary rather than the whole block
of descriptors.  Eg, for TX descriptors, they're allocated in blocks
of 10 descriptors for each ath_buf (for scatter/gather DMA.)
sys/dev/ath/if_ath.c