ethdev: add new offload flag to keep CRC
[dpdk.git] / drivers / net / bnxt / bnxt_rxq.c
index c55ddec..e4e3941 100644 (file)
@@ -326,8 +326,8 @@ int bnxt_rx_queue_setup_op(struct rte_eth_dev *eth_dev,
 
        rxq->queue_id = queue_idx;
        rxq->port_id = eth_dev->data->port_id;
-       rxq->crc_len = rx_offloads & DEV_RX_OFFLOAD_CRC_STRIP ?
-               0 : ETHER_CRC_LEN;
+       rxq->crc_len = rte_eth_dev_must_keep_crc(rx_offloads) ?
+               ETHER_CRC_LEN : 0;
 
        eth_dev->data->rx_queues[queue_idx] = rxq;
        /* Allocate RX ring hardware descriptors */