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 3cb5e9ef6d
commit da08198f72

View File

@ -985,6 +985,7 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
#else /* __rtems__ */ #else /* __rtems__ */
++ifp->if_ipackets; ++ifp->if_ipackets;
rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
#endif /* __rtems__ */ #endif /* __rtems__ */
DWC_UNLOCK(sc); DWC_UNLOCK(sc);