Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/pseries/phyp_llan.c
Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | while ((sc->rx_buf[sc->rx_dma_slot].control >> 7) == sc->rx_valid_val) { | ||||
rx = (struct llan_xfer *)sc->rx_buf[sc->rx_dma_slot].handle; | rx = (struct llan_xfer *)sc->rx_buf[sc->rx_dma_slot].handle; | ||||
m = rx->rx_mbuf; | m = rx->rx_mbuf; | ||||
m_adj(m, sc->rx_buf[sc->rx_dma_slot].offset - 8); | m_adj(m, sc->rx_buf[sc->rx_dma_slot].offset - 8); | ||||
m->m_len = sc->rx_buf[sc->rx_dma_slot].length; | m->m_len = sc->rx_buf[sc->rx_dma_slot].length; | ||||
/* llan_add_rxbuf does DMA sync and unload as well as requeue */ | /* llan_add_rxbuf does DMA sync and unload as well as requeue */ | ||||
if (llan_add_rxbuf(sc, rx) != 0) { | if (llan_add_rxbuf(sc, rx) != 0) { | ||||
if_inc_counter(sc->ifp, IFCOUNTER_IERRORS, 1); | if_inc_counter(sc->ifp, IFCOUNTER_IERRORS, 1); | ||||
phyp_hcall(H_ADD_LOGICAL_LAN_BUFFER, sc->unit, | |||||
rx->rx_bufdesc); | |||||
continue; | continue; | ||||
} | } | ||||
if_inc_counter(sc->ifp, IFCOUNTER_IPACKETS, 1); | if_inc_counter(sc->ifp, IFCOUNTER_IPACKETS, 1); | ||||
m_adj(m, sc->rx_buf[sc->rx_dma_slot].offset); | m_adj(m, sc->rx_buf[sc->rx_dma_slot].offset); | ||||
m->m_len = sc->rx_buf[sc->rx_dma_slot].length; | m->m_len = sc->rx_buf[sc->rx_dma_slot].length; | ||||
m->m_pkthdr.rcvif = sc->ifp; | m->m_pkthdr.rcvif = sc->ifp; | ||||
m->m_pkthdr.len = m->m_len; | m->m_pkthdr.len = m->m_len; | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |