No need to sync descriptors twice in age_rxintr()
This commit is contained in:
parent
7c5661fe5f
commit
92f71ae8f1
@ -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 New Issue
Block a user