]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cache Rx producer/Tx consumer index as soon as we know status block
authoryongari <yongari@FreeBSD.org>
Sun, 22 Nov 2009 20:02:13 +0000 (20:02 +0000)
committeryongari <yongari@FreeBSD.org>
Sun, 22 Nov 2009 20:02:13 +0000 (20:02 +0000)
commit0e8a843f407768256c95a56fe1a2a5ceca7e081f
treeb3fe9d537092c6ba54a1a1e4ffaa4f57eca41372
parent1c39f883345a7cd58531d6189eb7bc636ec3b75d
Cache Rx producer/Tx consumer index as soon as we know status block
update and then clear status block. Previously it used to access
these index without synchronization which may cause problems when
bounce buffers are used. Also add missing bus_dmamap_sync(9) in
polling handler. Since we now update status block in driver, adjust
bus_dmamap_sync(9) for status block.
sys/dev/bge/if_bge.c