dpdk安装与绑定网卡

DPDK的安装有两种方法:

第一种是使用dpdk/tools/setup.sh选择命令字来安装;第二种是自己手动安装。为了更好地熟悉DPDK,我使用第二种方法。

1、make config T=x86_64-native-linuxapp-gcc  && make

配置并编译DPDK

2、make install T=x86_64-native-linuxapp-gcc

3、ifconfig eth2 down

先把eth2关掉,不然第4步会报错的。

技术分享

4、python tools/dpdk_nic_bind.py --bind=igb_uio eth2

绑定igb_uio驱动到eth2

5、service network restart && ifconfig

重新启动网卡

技术分享

技术分享

 

6、python tools/dpdk_nic_bind.py --status  

查看网卡驱动绑定状态

技术分享

在第5步之后,ifconfig查看网卡端口,结果eth2竟然消失了,以为有问题。后来才明白这才是正常的!!!

因为安装了igb_uio驱动之后,eth2不再归ixgbe管理了,而是归igb_uio管理,ifconfig看不到eth2。

文章来自:http://www.cnblogs.com/mylinuxer/p/4274178.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3