summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-12-09 10:24:31 -0800
committerFlorin Coras <fcoras@cisco.com>2021-12-09 11:42:50 -0800
commit514df6f931fb95e801c5033b114967e86113e778 (patch)
tree2387678ce89c839ecf6e2f0d130affed78730bc4 /src/plugins/dpdk/device
parent99704b58a1287f8b2a9a761aeb52435e72f2d036 (diff)
dpdk: disable l4 csum offload for vmxnet3
TCP csum offload fails although udp seems to work. Type: fix Fixes: fa1fb60 Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie0651887b09920365806eaad776b0d13059faee8
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r--src/plugins/dpdk/device/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index af96d44ead7..3808a5b1e4d 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -622,8 +622,11 @@ dpdk_lib_init (dpdk_main_t * dm)
case VNET_DPDK_PMD_VMXNET3:
xd->port_type = VNET_DPDK_PORT_TYPE_ETH_1G;
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_MULTI_SEGS;
- if (dm->conf->no_tx_checksum_offload == 0)
+ /* TCP csum offload not working although udp might work. Left
+ * disabled for now */
+ if (0 && (dm->conf->no_tx_checksum_offload == 0))
{
+ xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_IPV4_CKSUM;
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_TCP_CKSUM;
xd->port_conf.txmode.offloads |= DEV_TX_OFFLOAD_UDP_CKSUM;
xd->flags |= DPDK_DEVICE_FLAG_TX_OFFLOAD;