From: Pavan Nikhilesh Date: Thu, 3 May 2018 11:31:15 +0000 (+0530) Subject: net/octeontx: fix missing offload flags X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2fd41a152e413a8b10efea3c0b1aea9fc1053e3d;p=dpdk.git net/octeontx: fix missing offload flags 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 --- diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 04120f502e..261b17f9be 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -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; diff --git a/drivers/net/octeontx/octeontx_ethdev.h b/drivers/net/octeontx/octeontx_ethdev.h index 9d6c22b0d9..14f1696920 100644 --- a/drivers/net/octeontx/octeontx_ethdev.h +++ b/drivers/net/octeontx/octeontx_ethdev.h @@ -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 *