参考:

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

最新文章

  1. ABP源码分析十八:UI Inputs
  2. [麦先生]学习PDO循序渐进使用方式
  3. (转)Unity3D游戏开发 NGUI之渐变加载到100%的Loading场景进度条
  4. Thread的第五天学习
  5. linux crt
  6. 查找页面中最大的z-index 的值
  7. Spring定时任务实例
  8. Java中的HTTP通信技术详解
  9. FFmpeg API 变更记录
  10. JSX的替代方案(译文)
  11. Spring增强代理模式
  12. 使用AtomicLong,经典银行账户问题
  13. 机器学习-Sklearn
  14. 从Excel表中导入数据时日期格式的验证问题解决
  15. ibatis 多种传参方式
  16. mvc 之 学习地址
  17. 略显犀利的 js 判断闰年
  18. 格林第一季/全集Grimm迅雷下载
  19. Lower Power with CPF(二)
  20. java基础7 封装

热门文章

  1. jack welch:“你们知道了,但是我们做到了”
  2. ad 原件布局布线基本规则
  3. BUAA 111 圆有点挤
  4. [转载]Oracle数据库基础--SQL查询经典例题
  5. 前端框架VUE----面向对象
  6. 3D模型文字动画
  7. Cookie,Session,正则表达式
  8. linux下的ifconfig命令
  9. php 把秒数转换为时长(h:i:s格式)
  10. sync—WaitGroup