<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><br></div><div> Hi<span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">:</span></div><div> </div><div> I have a question about the dpdk bond. <span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">My Openstack vm use 4 vfs support by SR-IOV. And i can not start dpdk-testpmd with dpdk bond mode 1. The error is "<font color="#ff0000">i40evf_dev_tx_queue_start(): Failed to switch TX queue 0 on</font>".</span></div><div><div><br></div><div> <b>My host environment is</b>£º</div><div> Two Intel x710 NIC, and slicing each NIC to 16 vfs. My VM use 4 vfs like this:</div><div> [root@overcloud-computelowconfig-0 ~]# ip link show ens2f0</div><div> 8: ens2f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000</div><div> link/ether 6c:fe:54:01:12:30 brd ff:ff:ff:ff:ff:ff</div><div> vf 0 link/ether fa:16:3e:04:1d:fd brd ff:ff:ff:ff:ff:ff, vlan 362, spoof checking off, link-state enable, trust off</div><div> ¡¡</div><div> vf 14 link/ether fa:16:3e:96:9f:4a brd ff:ff:ff:ff:ff:ff, vlan 361, spoof checking off, link-state enable, trust off</div><div>[root@overcloud-computelowconfig-0 ~]# ip link show ens2f1</div><div>9: ens2f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000</div><div> vf 12 link/ether fa:16:3e:bc:9a:2f brd ff:ff:ff:ff:ff:ff, vlan 362, spoof checking off, link-state enable, trust off</div><div> ¡¡</div><div> vf 14 link/ether fa:16:3e:63:4b:e9 brd ff:ff:ff:ff:ff:ff, vlan 361, spoof checking off, link-state enable, trust off</div><div><br></div><div><b>My vm environment is</b>£º</div><div>DPDK version dpdk-21.02.</div><div>[root@sriovtest-upf-42-gsu-0 app]# dpdk_nic_bind.py --status</div><div><br></div><div>Network devices using DPDK-compatible driver</div><div>============================================</div><div>0000:00:09.0 'XL710/X710 Virtual Function' drv=igb_uio unused=i40evf</div><div>0000:00:0a.0 'XL710/X710 Virtual Function' drv=igb_uio unused=i40evf</div><div>0000:00:0b.0 'XL710/X710 Virtual Function' drv=igb_uio unused=i40evf</div><div>0000:00:0c.0 'XL710/X710 Virtual Function' drv=igb_uio unused=i40evf</div><div><br></div><div><b>My error is:</b></div><div>[root@sriovtest-upf-42-gsu-0 app]# ./dpdk-testpmd -l 1-4 -n 4 --vdev 'net_bonding0,mode=1,slave=0000:00:0a.0,slave=0000:00:0c.0,primary=0000:00:0a.0' -- --port-topology=chained</div><div>EAL: Detected 16 lcore(s)</div><div>EAL: Detected 1 NUMA nodes</div><div>EAL: Detected static linkage of DPDK</div><div>EAL: Multi-process socket /var/run/dpdk/rte/mp_socket</div><div>EAL: Selected IOVA mode 'PA'</div><div>EAL: No available 1048576 kB hugepages reported</div><div>EAL: Probing VFIO support...</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket 0)</div><div>eth_virtio_pci_init(): Failed to init PCI device</div><div><br></div><div>EAL: Requested device 0000:00:03.0 cannot be used</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket 0)</div><div>eth_virtio_pci_init(): Failed to init PCI device</div><div><br></div><div>EAL: Requested device 0000:00:04.0 cannot be used</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket 0)</div><div>eth_virtio_pci_init(): Failed to init PCI device</div><div><br></div><div>EAL: Requested device 0000:00:05.0 cannot be used</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:06.0 (socket 0)</div><div>eth_virtio_pci_init(): Failed to init PCI device</div><div><br></div><div>EAL: Requested device 0000:00:06.0 cannot be used</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_i40e_vf (8086:154c) device: 0000:00:09.0 (socket 0)</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_i40e_vf (8086:154c) device: 0000:00:0a.0 (socket 0)</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_i40e_vf (8086:154c) device: 0000:00:0b.0 (socket 0)</div><div>EAL: Invalid NUMA socket, default to 0</div><div>EAL: Probe PCI driver: net_i40e_vf (8086:154c) device: 0000:00:0c.0 (socket 0)</div><div>EAL: No legacy callbacks, legacy socket not created</div><div>testpmd: create a new mbuf pool <mb_pool_0>: n=171456, size=2176, socket=0</div><div>testpmd: preferred mempool ops selected: ring_mp_mc</div><div><br></div><div>Port 3: link state change event</div><div>Configuring Port 0 (socket 0)</div><div><br></div><div>Port 0: link state change event</div><div><br></div><div>Port 0: link state change event</div><div>Port 0: FA:16:3E:96:9F:4A</div><div>Configuring Port 1 (socket 0)</div><div><br></div><div>Port 1: link state change event</div><div><br></div><div>Port 1: link state change event</div><div>Port 1: FA:16:3E:04:1D:FD</div><div>Configuring Port 2 (socket 0)</div><div><br></div><div>Port 2: link state change event</div><div><br></div><div>Port 2: link state change event</div><div>Port 2: FA:16:3E:63:4B:E9</div><div>Configuring Port 3 (socket 0)</div><div><br></div><div>Port 3: link state change event</div><div><br></div><div>Port 3: link state change event</div><div>Port 3: FA:16:3E:BC:9A:2F</div><div>Configuring Port 4 (socket 0)</div><div><br></div><div>Port 1: link state change event</div><div><font color="#ff0000">_i40evf_execute_vf_cmd(): No response for 8</font></div><div><font color="#ff0000">i40evf_switch_queue(): Fail to switch TX 0 on</font></div><div><font color="#ff0000">i40evf_dev_tx_queue_start(): Failed to switch TX queue 0 on</font></div><div>i40evf_start_queues(): Fail to start queue 0</div><div>i40evf_dev_start(): enable queues failed</div><div>_i40evf_execute_vf_cmd(): No response for 11</div><div>i40evf_add_del_all_mac_addr(): fail to execute command OP_DEL_ETHER_ADDRESS</div><div>slave_configure(1829) - rte_eth_dev_start: port=1, err (-1)</div><div>bond_ethdev_start(2002) - bonded port (4) failed to reconfigure slave device (1)</div><div>Fail to start port 4</div><div><br></div></div><div>So, how can i fix this error? </div><div><br></div><div>I look forward to hearing from you soon.</div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>zhanggongqin@bjcktech.com</div></div></span></div>
</body></html>