-
Cause: Error: number of ports must be even
原因:dpdk没有绑定网卡。./usertools/dpdk-devbind.py --bind=uio_pci_generic ens33(ifconfig查看) 会报: /usr/bin/env: ‘python’: No such file or directory /home/dpdk/dpdk-stable-19.11.10# whereis python3 python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz /home/dpdk/dpdk-stable-19.11.10# ln -s /usr/bin/python3 /usr/bin/python /home/dpdk-stable-19.11.10# ./usertools/dpdk-devbind.py --bind=uio_pci_generic ens33 Error: Driver 'uio_pci_generic' is not loaded.原因:uio驱动没有加载 /home/dpdk-stable-19.11.10#modprobe uio_pci_generic /home/dpdk-stable-19.11.10#insmod igb_uio.ko root@wy:/home/wy/dpdk/dpdk-stable-19.11.10# ./usertools/dpdk-devbind.py --status Network devices using kernel driver =================================== 0000:02:01.0 '79c970 [PCnet32 LANCE] 2000' if=ens33 drv=pcnet32 unused=igb_uio,vfio-pci,uio_pci_generic *Active* 0000:02:02.0 '79c970 [PCnet32 LANCE] 2000' if=ens34 drv=pcnet32 unused=igb_uio,vfio-pci,uio_pci_generic *Active* /home/dpdk-stable-19.11.10#./usertools/dpdk-devbind.py --bind=uio_pci_generic ens33 Warning: routing table indicates that interface 0000:02:01.0 is active. Not modifying 原因:接口up无法绑定,先把期望绑定的接口down掉,再绑定。仍然报错 解决方法: /home/dpdk-stable-19.11.10#ifconfig ens33 down /home/dpdk-stable-19.11.10#./usertools/dpdk-devbind.py --bind=uio_pci_generic ens33 Error: bind failed for 0000:02:01.0 - Cannot bind to driver uio_pci_generic Error: unbind failed for 0000:02:01.0 - Cannot open /sys/bus/pci/drivers//unbind /home/dpdk-stable-19.11.10#modprobe uio_pci_generic /home/dpdk-stable-19.11.10#lsmod | grep uio_pci_generic /home/dpdk-stable-19.11.10#./usertools/dpdk-devbind.py --bind=uio_pci_generic ens33 /home/dpdk-stable-19.11.10# ./usertools/dpdk-devbind.py --status Network devices using kernel driver =================================== 0000:02:02.0 '79c970 [PCnet32 LANCE] 2000' if=ens34 drv=pcnet32 unused=igb_uio,vfio-pci,uio_pci_generic *Active* Other Network devices ===================== 0000:02:01.0 '79c970 [PCnet32 LANCE] 2000' unused=pcnet32,igb_uio,vfio-pci,uio_pci_generic
-
/usr/bin/env: ‘python’: No such file or directory
ln -s /usr/bin/python3 /usr/bin/python
-
===
dpdk常见错误
于 2022-10-29 00:27:30 首次发布