虚拟机环境下DPDK运行时的一些错误解决

  • 在绑定网卡到DPDK模块时 报错 :is active. Not modifying
Routing table indicates that interface 0000:02:01.0 is active. Not modifying

解决方法:

ifconfig <网卡名称> down
  • 运行testpmd时无法分配内存:
EAL: Error - exiting with code: 1
  Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate memory

内存设置小了,将内存设置大一些(例如从64改成512),问题解决。

  • 运行testpmd,持续输出输入输出的报错信息:
EAL: Error reading from file descriptor 20: Input/output error
EAL: Error reading from file descriptor 18: Input/output error
EAL: Error reading from file descriptor 20: Input/output error
EAL: Error reading from file descriptor 18: Input/output error
EAL: Error reading from file descriptor 20: Input/output error
EAL: Error reading from file descriptor 18: Input/output error

原因:在虚拟机添加的网卡,dpdk不支持导致的。需要修改一行代码,跳过dpdk pci 检查

lib/librte_eal/linuxapp/igb_uio/igb_uio.c文件中找到

pci_intx_mask_supported(dev)

修改为

pci_intx_mask_supported(dev||true)

需要重新编译并加载IO模块。

转载于:https://www.cnblogs.com/ZCplayground/p/9314295.html

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值