diff mbox series

[ovs-dev,v3,2/6] netdev-dpdk: Disable outer UDP checksum for net/iavf.

Message ID 20240419140631.2018014-2-david.marchand@redhat.com
State New
Headers show
Series [ovs-dev,v3,1/6] netdev-dpdk: Fallback to non tunnel checksum offloading. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation fail test: fail

Commit Message

David Marchand April 19, 2024, 2:06 p.m. UTC
Same as the commit 6f93d8e62f13 ("netdev-dpdk: Disable outer UDP checksum
offload for ice/i40e driver."), disable outer UDP checksum and related
offloads for net/iavf.

Fixes: 084c8087292c ("userspace: Support VXLAN and GENEVE TSO.")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
Note:
- DPDK (in progress) fixes can be found at:
  https://patchwork.dpdk.org/project/dpdk/list/?series=31780&state=*

---
 lib/netdev-dpdk.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 7e109903c0..f732716141 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -1355,12 +1355,14 @@  dpdk_eth_dev_init(struct netdev_dpdk *dev)
     }
 
     if (!strcmp(info.driver_name, "net_ice")
-        || !strcmp(info.driver_name, "net_i40e")) {
+        || !strcmp(info.driver_name, "net_i40e")
+        || !strcmp(info.driver_name, "net_iavf")) {
         /* FIXME: Driver advertises the capability but doesn't seem
          * to actually support it correctly.  Can remove this once
          * the driver is fixed on DPDK side. */
         VLOG_INFO("%s: disabled Tx outer udp checksum offloads for a "
-                  "net/ice or net/i40e port.", netdev_get_name(&dev->up));
+                  "net/ice, net/i40e or net/iavf port.",
+                  netdev_get_name(&dev->up));
         info.tx_offload_capa &= ~RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
         info.tx_offload_capa &= ~RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO;
         info.tx_offload_capa &= ~RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO;