日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2023/12/2 编程问答 57 豆豆
生活随笔 收集整理的這篇文章主要介紹了 虚拟机环境下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: 1Cause: 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

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的虚拟机环境下DPDK运行时的一些错误解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。