Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_txrx.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
static inline void | static inline void | ||||
ixl_rx_discard(struct rx_ring *rxr, int i) | ixl_rx_discard(struct rx_ring *rxr, int i) | ||||
{ | { | ||||
struct ixl_rx_buf *rbuf; | struct ixl_rx_buf *rbuf; | ||||
KASSERT(rxr != NULL, ("Receive ring pointer cannot be null")); | KASSERT(rxr != NULL, ("Receive ring pointer cannot be null")); | ||||
KASSERT(i < rxr->que->num_rx_desc, ("Descriptor index must be less than que->num_desc")); | KASSERT(i < rxr->que->num_rx_desc, ("Descriptor index must be less than que->num_rx_desc")); | ||||
rbuf = &rxr->buffers[i]; | rbuf = &rxr->buffers[i]; | ||||
/* Free the mbufs in the current chain for the packet */ | /* Free the mbufs in the current chain for the packet */ | ||||
if (rbuf->fmp != NULL) { | if (rbuf->fmp != NULL) { | ||||
bus_dmamap_sync(rxr->ptag, rbuf->pmap, BUS_DMASYNC_POSTREAD); | bus_dmamap_sync(rxr->ptag, rbuf->pmap, BUS_DMASYNC_POSTREAD); | ||||
m_freem(rbuf->fmp); | m_freem(rbuf->fmp); | ||||
rbuf->fmp = NULL; | rbuf->fmp = NULL; | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |