DPDK 网卡绑定和解绑
2024-10-11 06:31:27
参考:
DPDK 网卡绑定和解绑
注意: 建议不要使用本文的eth0网卡绑定dpdk驱动.
1.进入DPDK目录:
$ cd dpdk/tools/
2.查看网卡信息:
$ ./dpdk-devbind.py --status
Network devices using DPDK-compatible driver
============================================
<none>
Network devices using kernel driver
===================================
0000:00:1f.6 'Ethernet Connection (2) I219-LM' if=eth0 drv=e1000e unused=igb_uio
Other network devices
=====================
<none>
Crypto devices using DPDK-compatible driver
===========================================
<none>
Crypto devices using kernel driver
==================================
<none>
Other crypto devices
====================
<none>
3.绑定eth0网卡到dpdk到驱动:
$ ./dpdk-devbind.py --bind=igb_uio 00:1f.6
4.再次查看网卡状态, 发现该网卡已经绑定到dpdk驱动:
Network devices using DPDK-compatible driver
============================================
0000:00:1f.6 'Ethernet Connection (2) I219-LM' drv=igb_uio unused=
Network devices using kernel driver
===================================
<none>
Other network devices
=====================
<none>
Crypto devices using DPDK-compatible driver
===========================================
<none>
Crypto devices using kernel driver
==================================
<none>
Other crypto devices
====================
<none>
5.解绑eth0:
$ ./dpdk-devbind.py -u 00:1f.6
查看驱动信息, 此时网卡已经与dpdk驱动解绑:
Network devices using DPDK-compatible driver
============================================
<none>
Network devices using kernel driver
===================================
<none>
Other network devices
=====================
0000:00:1f.6 'Ethernet Connection (2) I219-LM' unused=igb_uio
Crypto devices using DPDK-compatible driver
===========================================
<none>
Crypto devices using kernel driver
==================================
<none>
Other crypto devices
====================
<none>
如果需要重新将eth0绑定回kernel driver, 执行reboot即可:
$ reboot
2017.9
最新文章
- ABP源码分析十八:UI Inputs
- [麦先生]学习PDO循序渐进使用方式
- (转)Unity3D游戏开发 NGUI之渐变加载到100%的Loading场景进度条
- Thread的第五天学习
- linux crt
- 查找页面中最大的z-index 的值
- Spring定时任务实例
- Java中的HTTP通信技术详解
- FFmpeg API 变更记录
- JSX的替代方案(译文)
- Spring增强代理模式
- 使用AtomicLong,经典银行账户问题
- 机器学习-Sklearn
- 从Excel表中导入数据时日期格式的验证问题解决
- ibatis 多种传参方式
- mvc 之 学习地址
- 略显犀利的 js 判断闰年
- 格林第一季/全集Grimm迅雷下载
- Lower Power with CPF(二)
- java基础7 封装