zoukankan      html  css  js  c++  java
  • 虚拟机环境下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模块。

  • 相关阅读:
    简易文法
    词法分析实验报告
    0909上级作业
    vs2008的快捷键
    一道C++笔试题说一些知识
    Effective C++读书笔记
    鼠标拖动物体DEMO
    CFileDialog类的使用以及在非MFC程序下使用MFC的类资源
    3D制作魔方
    使用DXUT框架简单处理鼠标事件
  • 原文地址:https://www.cnblogs.com/ZCplayground/p/9314295.html
Copyright © 2011-2022 走看看