Lines Matching refs:rcd
290 # define vmxnet3_getRxComp(dstrcd, rcd, tmp) do { \ argument
292 vmxnet3_RxCompToCPU((rcd), (tmp)); \
305 # define vmxnet3_getRxComp(dstrcd, rcd, tmp) (dstrcd) = (rcd) argument
651 vmxnet3_append_frag(struct sk_buff *skb, struct Vmxnet3_RxCompDesc *rcd, in vmxnet3_append_frag() argument
660 skb_frag_size_set(frag, rcd->len); in vmxnet3_append_frag()
661 skb->data_len += rcd->len; in vmxnet3_append_frag()
1226 if (!gdesc->rcd.cnc && adapter->netdev->features & NETIF_F_RXCSUM) { in vmxnet3_rx_csum()
1227 if (gdesc->rcd.v4 && in vmxnet3_rx_csum()
1231 WARN_ON_ONCE(!(gdesc->rcd.tcp || gdesc->rcd.udp) && in vmxnet3_rx_csum()
1234 WARN_ON_ONCE(gdesc->rcd.frg && in vmxnet3_rx_csum()
1237 } else if (gdesc->rcd.v6 && (le32_to_cpu(gdesc->dword[3]) & in vmxnet3_rx_csum()
1240 WARN_ON_ONCE(!(gdesc->rcd.tcp || gdesc->rcd.udp) && in vmxnet3_rx_csum()
1243 WARN_ON_ONCE(gdesc->rcd.frg && in vmxnet3_rx_csum()
1247 if (gdesc->rcd.csum) { in vmxnet3_rx_csum()
1248 skb->csum = htons(gdesc->rcd.csum); in vmxnet3_rx_csum()
1261 vmxnet3_rx_error(struct vmxnet3_rx_queue *rq, struct Vmxnet3_RxCompDesc *rcd, in vmxnet3_rx_error() argument
1265 if (!rcd->fcs) in vmxnet3_rx_error()
1300 BUG_ON(gdesc->rcd.tcp == 0); in vmxnet3_get_hdr_len()
1313 if (gdesc->rcd.v4) { in vmxnet3_get_hdr_len()
1320 } else if (gdesc->rcd.v6) { in vmxnet3_get_hdr_len()
1351 struct Vmxnet3_RxCompDesc *rcd; in vmxnet3_rq_rx_complete() local
1358 vmxnet3_getRxComp(rcd, &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, in vmxnet3_rq_rx_complete()
1360 while (rcd->gen == rq->comp_ring.gen) { in vmxnet3_rq_rx_complete()
1381 BUG_ON(rcd->rqID != rq->qid && rcd->rqID != rq->qid2 && in vmxnet3_rq_rx_complete()
1382 rcd->rqID != rq->dataRingQid); in vmxnet3_rq_rx_complete()
1383 idx = rcd->rxdIdx; in vmxnet3_rq_rx_complete()
1384 ring_idx = VMXNET3_GET_RING_IDX(adapter, rcd->rqID); in vmxnet3_rq_rx_complete()
1393 if (unlikely(rcd->eop && rcd->err)) { in vmxnet3_rq_rx_complete()
1394 vmxnet3_rx_error(rq, rcd, ctx, adapter); in vmxnet3_rq_rx_complete()
1398 if (rcd->sop) { /* first buf of the pkt */ in vmxnet3_rq_rx_complete()
1403 (rcd->rqID != rq->qid && in vmxnet3_rq_rx_complete()
1404 rcd->rqID != rq->dataRingQid)); in vmxnet3_rq_rx_complete()
1409 if (unlikely(rcd->len == 0)) { in vmxnet3_rq_rx_complete()
1411 BUG_ON(!(rcd->sop && rcd->eop)); in vmxnet3_rq_rx_complete()
1422 VMXNET3_RX_DATA_RING(adapter, rcd->rqID); in vmxnet3_rq_rx_complete()
1423 len = rxDataRingUsed ? rcd->len : rbi->len; in vmxnet3_rq_rx_complete()
1440 BUG_ON(rcd->len > rq->data_ring.desc_size); in vmxnet3_rq_rx_complete()
1443 sz = rcd->rxdIdx * rq->data_ring.desc_size; in vmxnet3_rq_rx_complete()
1445 &rq->data_ring.base[sz], rcd->len); in vmxnet3_rq_rx_complete()
1480 if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && in vmxnet3_rq_rx_complete()
1484 switch (rcd->rssType) { in vmxnet3_rq_rx_complete()
1500 le32_to_cpu(rcd->rssHash), in vmxnet3_rq_rx_complete()
1504 skb_put(ctx->skb, rcd->len); in vmxnet3_rq_rx_complete()
1507 rcd->type == VMXNET3_CDTYPE_RXCOMP_LRO) { in vmxnet3_rq_rx_complete()
1509 rcdlro = (struct Vmxnet3_RxCompDescExt *)rcd; in vmxnet3_rq_rx_complete()
1532 if (rcd->len) { in vmxnet3_rq_rx_complete()
1564 vmxnet3_append_frag(ctx->skb, rcd, rbi); in vmxnet3_rq_rx_complete()
1576 if (rcd->eop) { in vmxnet3_rq_rx_complete()
1581 (union Vmxnet3_GenericDesc *)rcd); in vmxnet3_rq_rx_complete()
1583 if (!rcd->tcp || in vmxnet3_rq_rx_complete()
1588 skb_shinfo(skb)->gso_type = rcd->v4 ? in vmxnet3_rq_rx_complete()
1596 (union Vmxnet3_GenericDesc *)rcd); in vmxnet3_rq_rx_complete()
1601 rcd->v4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6; in vmxnet3_rq_rx_complete()
1612 if (unlikely(rcd->ts)) in vmxnet3_rq_rx_complete()
1613 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), rcd->tci); in vmxnet3_rq_rx_complete()
1654 vmxnet3_getRxComp(rcd, in vmxnet3_rq_rx_complete()
1655 &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, &rxComp); in vmxnet3_rq_rx_complete()