dpdk常见错误

  1. 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
    
    
    
  2. /usr/bin/env: ‘python’: No such file or directory

    ln -s /usr/bin/python3 /usr/bin/python
    
  3. ===

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值