mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
No need to sync descriptors twice in age_rxintr()
This commit is contained in:
parent
f68687336b
commit
381a7c1a83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184106
|
@ -2478,9 +2478,6 @@ age_rxintr(struct age_softc *sc, int rr_prod, int count)
|
|||
bus_dmamap_sync(sc->age_cdata.age_rr_ring_tag,
|
||||
sc->age_cdata.age_rr_ring_map,
|
||||
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
|
||||
bus_dmamap_sync(sc->age_cdata.age_rx_ring_tag,
|
||||
sc->age_cdata.age_rx_ring_map,
|
||||
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
|
||||
|
||||
for (prog = 0; rr_cons != rr_prod; prog++) {
|
||||
if (count <= 0)
|
||||
|
@ -2513,9 +2510,6 @@ age_rxintr(struct age_softc *sc, int rr_prod, int count)
|
|||
sc->age_cdata.age_rr_cons = rr_cons;
|
||||
|
||||
/* Sync descriptors. */
|
||||
bus_dmamap_sync(sc->age_cdata.age_rx_ring_tag,
|
||||
sc->age_cdata.age_rx_ring_map,
|
||||
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
|
||||
bus_dmamap_sync(sc->age_cdata.age_rr_ring_tag,
|
||||
sc->age_cdata.age_rr_ring_map,
|
||||
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
|
||||
|
|
Loading…
Reference in a new issue