【发布时间】:2020-01-16 17:14:17
【问题描述】:
能否请您建议虚拟机中的哪个 Intel DPDK 驱动程序与主机中的 Intel X710 网卡驱动程序兼容?我们目前使用的 igb_uio 驱动程序可能仅与 82599 等 Intel 网卡兼容。
【问题讨论】:
-
这听起来不像是编程问题。通用计算机/操作系统问题属于superuser.com
标签: dpdk
能否请您建议虚拟机中的哪个 Intel DPDK 驱动程序与主机中的 Intel X710 网卡驱动程序兼容?我们目前使用的 igb_uio 驱动程序可能仅与 82599 等 Intel 网卡兼容。
【问题讨论】:
标签: dpdk
由于问题不清楚,我必须做出一些假设。
假设:
要达到同样的效果,您将有 3 个选项。 一种。 X710 直通来宾操作系统。 湾。 X710 作为 SRIOV 到客户操作系统。 C。使用 OVS、Virtual Switch、VPP 或 Snabb 交换机等中间应用程序连接到客户操作系统。
对于 a 和 b 的情况,您仍然可以使用 igb_uio 或 'vfio-pcias the kernel driver is still i40e and device is seen as x710. For casecyou can use 'igb_uio` 和 virtio-pci 作为内核驱动程序。
【讨论】:
why does X710 NIC VF driver remove the VLAN without RX offload VLAN strip flags set? The unexpected VLAN removal behaviour of X710 NIC VF driver vfio-pci is a known bug? 我相信,这与您传递的端口初始化配置有关,因为您可能在 API rte_eth_dev_configure 中默认传递 eth_conf。这将使用默认的 RX 卸载行为,即 dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_QINQ_STRIP。
The outgoing packets from DPDK application are leaving VM via VF towards Host’s Physical ports 这是因为如果您使用rte_eth_dev_configure 的默认配置,则 tx 卸载是为了支持 VLAN
But the incoming packets from Host’s Physical port are not reaching VM via VF,这必须由 HOST PF、流导向器规则和 VF 设置决定。我假设您没有在主机上使用 Fdir 并将 rte_eth_dev_configure 设置为来宾操作系统中的默认值。问题是without virtual switch or flow director how do you plan to tell which vlan lands which VM?
感谢您更新详细信息,因为这清楚地说明了环境和设置。请找到问题的答案以及可以采取哪些措施来解决问题
环境:
Fix for incoming packets from Host’s Physical port are not reaching VM via VF 是将流量从物理 X710 重定向到所需的 SRIOV 端口,我们有 2 个选项
目前的描述我找不到。
回答您的问题
why does X710 NIC VF driver remove the VLAN without RX offload VLAN strip flags set? The unexpected VLAN removal behaviour of X710 NIC VF driver vfio-pci is a known bug?
我相信,这与您传递的端口初始化配置有关,因为您可能将 API rte_eth_dev_configure 中的 eth_conf 作为默认值传递。这将使用默认的 RX 卸载行为,即 dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_QINQ_STRIP。
The outgoing packets from DPDK application are leaving VM via VF towards Host’s Physical ports 这是因为如果您对 rte_eth_dev_configure 使用默认配置,则 tx 卸载是为了支持 VLAN
But the incoming packets from Host’s Physical port are not reaching VM via VF,这必须由 HOST PF、流导向器规则和 VF 设置决定。我假设您没有在主机上使用流控制器并将 rte_eth_dev_configure 设置为来宾操作系统中的默认值。
【讨论】: