]> git.droids-corp.org - dpdk.git/commitdiff
net/octeontx: fix missing offload flags
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Thu, 3 May 2018 11:31:15 +0000 (17:01 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:26:36 +0000 (22:26 +0100)
Fix missing DEV_RX_OFFLOAD_CHECKSUM flag in RX offloads.
Remove depricated txq_flags field.

Fixes: a92870896b4a ("net/octeontx: use the new offload APIs")
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
drivers/net/octeontx/octeontx_ethdev.c
drivers/net/octeontx/octeontx_ethdev.h

index 04120f502ece655c8de4ff24befc430e387e06bb..261b17f9be595ce9664cec895e20053b20316b92 100644 (file)
@@ -627,10 +627,7 @@ octeontx_dev_info(struct rte_eth_dev *dev,
 
        dev_info->default_txconf = (struct rte_eth_txconf) {
                .tx_free_thresh = 0,
-               .txq_flags =
-                       ETH_TXQ_FLAGS_NOMULTSEGS |
-                       ETH_TXQ_FLAGS_NOOFFLOADS |
-                       ETH_TXQ_FLAGS_NOXSUMS,
+               .offloads = OCTEONTX_TX_OFFLOADS,
        };
 
        dev_info->rx_offload_capa = OCTEONTX_RX_OFFLOADS;
index 9d6c22b0d95efbe4c70075706753fe3e45fed369..14f16969206bb50215a8d025e5bbc40d6cd31c8a 100644 (file)
@@ -28,7 +28,8 @@
 #define OCTEONTX_MAX_BGX_PORTS                 4
 #define OCTEONTX_MAX_LMAC_PER_BGX              4
 
-#define OCTEONTX_RX_OFFLOADS                   DEV_RX_OFFLOAD_CRC_STRIP
+#define OCTEONTX_RX_OFFLOADS                   (DEV_RX_OFFLOAD_CRC_STRIP \
+                                               | DEV_RX_OFFLOAD_CHECKSUM)
 #define OCTEONTX_TX_OFFLOADS                   DEV_TX_OFFLOAD_MT_LOCKFREE
 
 static inline struct octeontx_nic *