[root@localhost SOURCES]# ovs-vsctl add-br br-phy -- set bridge br-phy datapath_type=netdev [root@localhost SOURCES]# ovs-vsctl add-port br-phy dpdk-p0 -- set Interface dpdk-p0 type=dpdk options:dpdk-devargs=0000:05:00.0 ovs-vsctl: Error detected while setting up ‘dpdk-p0‘: could not open network device dpdk-p0 (Address family not supported by protocol). See ovs-vswitchd log for details. ovs-vsctl: The default log directory is "/var/log/openvswitch".
查看网卡与dpdk绑定状态
[root@localhost dpdk-19.11]# ./usertools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:05:00.0 ‘Hi1822 Family (2*25GE) 0200‘ drv=vfio-pci unused=hinic 0000:06:00.0 ‘Hi1822 Family (2*25GE) 0200‘ drv=vfio-pci unused=hinic Network devices using kernel driver =================================== 0000:7d:00.0 ‘HNS GE/10GE/25GE RDMA Network Controller a222‘ if=enp125s0f0 drv=hns3 unused=hns_roce_hw_v2,vfio-pci *Active* 0000:7d:00.1 ‘HNS GE/10GE/25GE Network Controller a221‘ if=enp125s0f1 drv=hns3 unused=vfio-pci 0000:7d:00.2 ‘HNS GE/10GE/25GE RDMA Network Controller a222‘ if=enp125s0f2 drv=hns3 unused=hns_roce_hw_v2,vfio-pci 0000:7d:00.3 ‘HNS GE/10GE/25GE Network Controller a221‘ if=enp125s0f3 drv=hns3 unused=vfio-pci No ‘Baseband‘ devices detected ============================== No ‘Crypto‘ devices detected ============================ No ‘Eventdev‘ devices detected ============================== No ‘Mempool‘ devices detected ============================= No ‘Compress‘ devices detected ============================== No ‘Misc (rawdev)‘ devices detected =================================== [root@localhost dpdk-19.11]#
原文:https://www.cnblogs.com/dream397/p/12697629.html