dpdk网卡的解绑,不需要重启设备。

linux网卡在dpdk绑定之后,恢复成linux设备控制的方法如下:

chen@dpi-x64:[/home/chen/git/dpi-dpdk/trunk]lspci |grep Eth
03:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
03:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
04:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
04:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
06:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
 

sudo python dpdk-devbind.py -u 03:00.0

sudo python dpdk-devbind.py -b ixgbe 03:00.0

sudo python dpdk-devbind.py --status

chen@dpi-x64:[/home/chen/git/dpi-dpdk/trunk]sudo python dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================

Network devices using kernel driver
===================================
0000:03:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=ens4f0 drv=ixgbe unused=igb_uio 
0000:03:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=ens4f1 drv=ixgbe unused=igb_uio 
0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=enp4s0f0 drv=ixgbe unused=igb_uio 
0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=enp4s0f1 drv=ixgbe unused=igb_uio 
0000:05:00.0 'I210 Gigabit Network Connection 1533' if=enp5s0 drv=igb unused=igb_uio 
0000:06:00.0 'I210 Gigabit Network Connection 1533' if=enp6s0 drv=igb unused=igb_uio *Active*

Other Network devices
=====================

Crypto devices using DPDK-compatible driver
===========================================

Crypto devices using kernel driver
==================================

恢复了。

但是网卡虽然可能用ifconfig看到,插上了光纤却不up,通过重装ixgbe驱动解决的这个问题。

来自于https://stackoverflow.com/questions/46927441/how-to-claim-network-cards-after-unbinded-from-dpdk

你可能感兴趣的:(dpdk网卡的解绑,不需要重启设备。)