X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fice%2Fice_dcf_ethdev.c;h=2faed3cc7a7b6f81ca84500f236524a0e43f2eab;hb=8716f9942a408a79a114ac0496e4e7d55bc9944c;hp=c39dfc1cce0bcee42d8422adae366c6efb6e7d08;hpb=fe98cd9831863afd36b0d065a7ec1473953331a3;p=dpdk.git diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index c39dfc1cce..2faed3cc7a 100644 --- a/drivers/net/ice/ice_dcf_ethdev.c +++ b/drivers/net/ice/ice_dcf_ethdev.c @@ -230,7 +230,7 @@ ice_dcf_config_rx_queues_irqs(struct rte_eth_dev *dev, static int alloc_rxq_mbufs(struct ice_rx_queue *rxq) { - volatile union ice_32b_rx_flex_desc *rxd; + volatile union ice_rx_flex_desc *rxd; struct rte_mbuf *mbuf = NULL; uint64_t dma_addr; uint16_t i; @@ -254,8 +254,10 @@ alloc_rxq_mbufs(struct ice_rx_queue *rxq) rxd = &rxq->rx_ring[i]; rxd->read.pkt_addr = dma_addr; rxd->read.hdr_addr = 0; +#ifndef RTE_LIBRTE_ICE_16BYTE_RX_DESC rxd->read.rsvd1 = 0; rxd->read.rsvd2 = 0; +#endif rxq->sw_ring[i].mbuf = (void *)mbuf; }