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 04120f5..261b17f 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 9d6c22b..14f1696 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 *