Skip to contentSkip to conversation

vmxnet3: fix txq flags check

PATCH Applied Yong Wang 2 participants 2 messages Mar 28, 2016 – Mar 31, 2016

Subsystems (2)
lore
Share & tools
lore

Yong Wang

author
#0 lore raw

PATCH 1/1 vmxnet3: fix txq flags check

Now that vmxnet3 supports TCP/UDP checksum offload, let's update the default txq flags to allow such offloads. Also fixed the tx queue setup check to allow TCP/UDP checksum and only error out if SCTP checksum is requested.

Fixes f598fd063bb1 ("vmxnet3: add Tx L4 checksum offload")
---
 drivers/net/vmxnet3/vmxnet3_ethdev.c | 3 +--
 drivers/net/vmxnet3/vmxnet3_rxtx.c   | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/vmxnet3/vmxnet3_ethdev.c +1 -2
index f2b6b92..b0588ef 100644
@@ -709,8 +709,7 @@ vmxnet3_dev_info_get(__attribute__((unused))struct rte_eth_dev *dev,
 	dev_info->max_rx_pktlen = 16384; /* includes CRC, cf MAXFRS register */
 	dev_info->max_mac_addrs = VMXNET3_MAX_MAC_ADDRS;
 
-	dev_info->default_txconf.txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS |
-						ETH_TXQ_FLAGS_NOOFFLOADS;
+	dev_info->default_txconf.txq_flags = ETH_TXQ_FLAGS_NOXSUMSCTP;
 	dev_info->flow_type_rss_offloads = VMXNET3_RSS_OFFLOAD_ALL;
 
 	dev_info->rx_desc_lim = (struct rte_eth_desc_lim) {
drivers/net/vmxnet3/vmxnet3_rxtx.c +1 -1
index 66b0eed..ebf883f 100644
@@ -811,7 +811,7 @@ vmxnet3_dev_tx_queue_setup(struct rte_eth_dev *dev,
 
 	PMD_INIT_FUNC_TRACE();
 
-	if ((tx_conf->txq_flags & ETH_TXQ_FLAGS_NOXSUMS) !=
+	if ((tx_conf->txq_flags & ETH_TXQ_FLAGS_NOXSUMSCTP) !=
 	    ETH_TXQ_FLAGS_NOXSUMSCTP) {
 		PMD_INIT_LOG(ERR, "SCTP checksum offload not supported");
 		return -EINVAL;
Signature · 1 line
1.9.1
#1 lore raw

2016-03-28 15:35, Yong Wang:

Quoted 9 lines

Now that vmxnet3 supports TCP/UDP checksum offload, let's update the default txq flags to allow such offloads. Also fixed the tx queue setup check to allow TCP/UDP checksum and only error out if SCTP checksum is requested.

Fixes f598fd063bb1 ("vmxnet3: add Tx L4 checksum offload")

Applied, thanks