Changeset View
Changeset View
Standalone View
Standalone View
dev/ixl/ixl_txrx.c
Context not available. | |||||
int i, nextp, processed = 0; | int i, nextp, processed = 0; | ||||
union i40e_rx_desc *cur; | union i40e_rx_desc *cur; | ||||
struct ixl_rx_buf *rbuf, *nbuf; | struct ixl_rx_buf *rbuf, *nbuf; | ||||
u32 status = 0; | |||||
IXL_RX_LOCK(rxr); | IXL_RX_LOCK(rxr); | ||||
Context not available. | |||||
for (i = rxr->next_check; count != 0;) { | for (i = rxr->next_check; count != 0;) { | ||||
struct mbuf *sendmp, *mh, *mp; | struct mbuf *sendmp, *mh, *mp; | ||||
u32 status, error; | u32 error; | ||||
u16 hlen, plen, vtag; | u16 hlen, plen, vtag; | ||||
u64 qword; | u64 qword; | ||||
u8 ptype; | u8 ptype; | ||||
Context not available. | |||||
le32toh(cur->wb.qword0.hi_dword.rss); | le32toh(cur->wb.qword0.hi_dword.rss); | ||||
M_HASHTYPE_SET(sendmp, ixl_ptype_to_hash(ptype)); | M_HASHTYPE_SET(sendmp, ixl_ptype_to_hash(ptype)); | ||||
#else | #else | ||||
sendmp->m_pkthdr.flowid = que->msix; | /* que->msix is one based and flowid is zero based */ | ||||
sendmp->m_pkthdr.flowid = que->msix - 1; | |||||
M_HASHTYPE_SET(sendmp, M_HASHTYPE_OPAQUE); | M_HASHTYPE_SET(sendmp, M_HASHTYPE_OPAQUE); | ||||
#endif | #endif | ||||
} | } | ||||
Context not available. | |||||
#endif | #endif | ||||
#endif /* defined(INET6) || defined(INET) */ | #endif /* defined(INET6) || defined(INET) */ | ||||
return (FALSE); | if ((status & (1 << I40E_RX_DESC_STATUS_DD_SHIFT)) == 0) | ||||
return (FALSE); | |||||
else | |||||
return (TRUE); | |||||
} | } | ||||
Context not available. |