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 <pbhagavatula@caviumnetworks.com>
This commit is contained in:
Pavan Nikhilesh 2018-05-03 17:01:15 +05:30 committed by Ferruh Yigit
parent ac0ba3e151
commit 2fd41a152e
2 changed files with 3 additions and 5 deletions

View 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;

View 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 *