On Thu, 15 Apr 2021 at 15:31, Riccardo Ravaioli <riccardoravai...@gmail.com> wrote:
> I noticed something weird when using an I225 interface in OVS-DPDK: > outgoing packets are processed normally, while incoming packets get > truncated. In particular, starting from a certain IP packet length, the > last 4 Bytes are always truncated. > [...] > So we did a quick hack to force CRC stripping when the DPDK driver in use is net_igc. It seems to work, but we're not too sure about possible side effects. Here is the patch: diff -ru openvswitch-2.15.0.orig/lib/netdev-dpdk.c openvswitch-2.15.0/lib/netdev-dpdk.c --- openvswitch-2.15.0.orig/lib/netdev-dpdk.c 2021-02-15 19:24:17.748074628 +0100 +++ openvswitch-2.15.0/lib/netdev-dpdk.c 2021-04-21 15:21:20.575265997 +0200 @@ -1105,7 +1105,11 @@ if (strstr(info.driver_name, "vf") != NULL) { VLOG_INFO("Virtual function detected, HW_CRC_STRIP will be enabled"); dev->hw_ol_features |= NETDEV_RX_HW_CRC_STRIP; + } else if (!strcmp(info.driver_name, "net_igc")) { + VLOG_INFO("net_igc driver detected, HW_CRC_STRIP will be enabled"); + dev->hw_ol_features |= NETDEV_RX_HW_CRC_STRIP; } else { + VLOG_INFO("dpdk_eth_dev_init, HW_CRC_STRIP will be disabled"); dev->hw_ol_features &= ~NETDEV_RX_HW_CRC_STRIP; } What do you guys think? Thanks! Riccardo
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss