if_dwc: Invalidate read buffer again

This may prevent problems in case a cache line prefetch added some lines
to the cache during a DMA transfer.
This commit is contained in:
Sebastian Huber 2015-09-07 08:33:16 +02:00
parent 3ef41be02f
commit 2360b084ff

View File

@ -925,6 +925,9 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
/* Remove trailing FCS */
m_adj(m, -ETHER_CRC_LEN);
#ifdef __rtems__
rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
#endif /* __rtems__ */
DWC_UNLOCK(sc);
(*ifp->if_input)(ifp, m);
DWC_LOCK(sc);