summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Leroy <maxime.leroy@6wind.com>2019-08-13 15:29:47 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-09-04 10:14:28 +0200
commit86536da001c03d2bcbdb38ccdcd023e6d744f5b8 (patch)
tree9aa2ad512ae41e3c1a2cffe7966e15d59d2047d5
parente573264c71de3de67e8fa81b0872c10bf4650f15 (diff)
downloaddpdk-next-eventdev-86536da001c03d2bcbdb38ccdcd023e6d744f5b8.zip
dpdk-next-eventdev-86536da001c03d2bcbdb38ccdcd023e6d744f5b8.tar.gz
dpdk-next-eventdev-86536da001c03d2bcbdb38ccdcd023e6d744f5b8.tar.xz
net/vmxnet3: remove IP checksum from capabilities
The vmxnet3_prep_pkts function set rte_errno to ENOTSUP for any packets having PKT_TX_IP_CHECKSUM set in ol_flags. But the vmxnet3 has DEV_TX_OFFLOAD_IPV4_CKSUM set in this tx offload capa. This issue has been introduced with the new Rx offload API. DEV_TX_OFFLOAD_IPV4_CKSUM and DEV_RX_OFFLOAD_IPV4_CKSUM has been added to the tx/rx offloads capa, but the vmxnet3 driver doesn't support it. To fix the issue, DEV_TX/RX_OFFLOAD_IPV4_CKSUM needs to be removed from tx/rx offload capa. Fixes: 95e4a96ccbf1 ("net/vmxnet3: convert to new Rx offload API") Cc: stable@dpdk.org Signed-off-by: Maxime Leroy <maxime.leroy@6wind.com> Acked-by: Yong Wang <yongwang@vmware.com>
-rw-r--r--drivers/net/vmxnet3/vmxnet3_ethdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index 57feb37..9cd5eb6 100644
--- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
+++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
@@ -44,7 +44,6 @@
#define VMXNET3_TX_OFFLOAD_CAP \
(DEV_TX_OFFLOAD_VLAN_INSERT | \
- DEV_TX_OFFLOAD_IPV4_CKSUM | \
DEV_TX_OFFLOAD_TCP_CKSUM | \
DEV_TX_OFFLOAD_UDP_CKSUM | \
DEV_TX_OFFLOAD_TCP_TSO | \
@@ -54,7 +53,6 @@
(DEV_RX_OFFLOAD_VLAN_STRIP | \
DEV_RX_OFFLOAD_VLAN_FILTER | \
DEV_RX_OFFLOAD_SCATTER | \
- DEV_RX_OFFLOAD_IPV4_CKSUM | \
DEV_RX_OFFLOAD_UDP_CKSUM | \
DEV_RX_OFFLOAD_TCP_CKSUM | \
DEV_RX_OFFLOAD_TCP_LRO | \