Hi Guys, Need help, the issue is to use DPDK PMD on OVS (Open vSwitch), I've following NIC card bind:
********************************************************************* root@yockgenm-tgl01:~# python3 /usr/bin/dpdk-devbind.py -s Network devices using DPDK-compatible driver ============================================ 0000:58:00.0 'Device 15f2' drv=vfio-pci unused=igc Network devices using kernel driver =================================== 0000:00:14.3 'Device a0f0' if=wlo1 drv=iwlwifi unused=vfio-pci *Active* ********************************************************************* Following is the steps that I did in OVS-DPDK (according to https://docs.openvswitch.org/en/latest/howto/dpdk/): 1. ovs-vsctl add-br ovs-br1 -- set bridge ovs-br1 datapath_type=netdev 2. ovs-vsctl add-port ovs-br1 dpdk-p0 -- set Interface dpdk-p0 type=dpdk options:dpdk-devargs=0000:58:00.0 3. ovs-vsctl add-port ovs-br1 dpdk-p1 -- set Interface dpdk-p1 type=dpdk options:dpdk-devargs="class=eth,mac=00:11:22:33:44:55" Step 2 & 3 have been failed, following are the errors log from OVS, it seems to me like the EAL error from DPDK during PMD attaching: 2021-11-16T04:27:09.130Z|00119|dpdk|ERR|EAL: Driver cannot attach the device (0000:58:00.0) 2021-11-16T04:27:09.130Z|00120|dpdk|ERR|EAL: Failed to attach device on primary process 2021-11-16T04:27:09.130Z|00121|netdev_dpdk|WARN|Error attaching device '0000:58:00.0' to DPDK 2021-11-16T04:27:09.130Z|00122|netdev|WARN|dpdk-p0: could not set configuration (Invalid argument) 2021-11-16T04:27:09.130Z|00123|dpdk|ERR|Invalid port_id=32 The OVS and DPDK versions as following: ********************************************************************* root@yockgenm-tgl01:~# ovs-vsctl list Open_Vswitch _uuid : 3a0b9bb1-6db4-4dd9-9df4-c239559a7c5f bridges : [f9ab4a9e-3c22-4612-8f30-1f6ee0c1d4a1] cur_cfg : 363 datapath_types : [netdev, system] datapaths : {} db_version : "8.2.0" dpdk_initialized : true dpdk_version : "DPDK 19.11.7" external_ids : {hostname=yockgenm-tgl01, rundir="/var/run/openvswitch", system-id="605bf25b-224c-4e01-888b-9423fba67bf6"} iface_types : [dpdk, dpdkr, dpdkvhostuser, dpdkvhostuserclient, erspan, geneve, gre, internal, ip6erspan, ip6gre, lisp, patch, stt, system, tap, vxlan] manager_options : [] next_cfg : 363 other_config : {dpdk-alloc-mem="2048", dpdk-extra="--pci-whitelist=0000:58:00.0", dpdk-init="true", dpdk-lcore-mask="0x1"} ovs_version : "2.13.3" ssl : [] statistics : {} system_type : ubuntu system_version : "20.04" ********************************************************************* Trying to google and OVS mailing list whole morning but failed to get any solid information, any guidance is really appreciate. Thanks! Regards, Mah _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
