]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/cxgbe/cxgbe_ethdev.c
ethdev: add new offload flag to keep CRC
[dpdk.git] / drivers / net / cxgbe / cxgbe_ethdev.c
index 713dc8fae0d9a4b4a99c693ed7422b431a4419fe..a1dcf588296c28d5cb3e3d912b7d009ab09b56bc 100644 (file)
@@ -354,7 +354,11 @@ int cxgbe_dev_configure(struct rte_eth_dev *eth_dev)
 
        CXGBE_FUNC_TRACE();
        configured_offloads = eth_dev->data->dev_conf.rxmode.offloads;
-       if (!(configured_offloads & DEV_RX_OFFLOAD_CRC_STRIP)) {
+
+       /* KEEP_CRC offload flag is not supported by PMD
+        * can remove the below block when DEV_RX_OFFLOAD_CRC_STRIP removed
+        */
+       if (rte_eth_dev_must_keep_crc(configured_offloads)) {
                dev_info(adapter, "can't disable hw crc strip\n");
                eth_dev->data->dev_conf.rxmode.offloads |=
                        DEV_RX_OFFLOAD_CRC_STRIP;