DPDK网卡绑定和解绑

小鱼儿 2022-09-25 11:24 363阅读 0赞

绑定网卡

./dpdk_nic_bind.py —bind=igb_uio eth1

解绑网卡
./dpdk_nic_bind.py -u 0000:01:00.0(PCI address)

PCI address查看方式

./dpdk_nic_bind.py —status

Network devices using DPDK-compatible driver

Network devices using kernel driver

0000:01:00.0 ‘82576 Gigabit Network Connection’ if=eth3 drv=igb unused=igb_uio
0000:01:00.1 ‘82576 Gigabit Network Connection’ if=eth2 drv=igb unused=igb_uio
0000:03:00.0 ‘RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller’ if=eth1 drv=r8169 unused=igb_uio *Active*

Other network devices

0000:01:00.0便是PCI address

然后执行setup.sh选择Unbind NICs from IGB UIO driver
./setup.sh
Option: 24

Network devices using DPDK-compatible driver

Network devices using kernel driver

0000:01:00.0 ‘82576 Gigabit Network Connection’ if=eth3 drv=igb unused=igb_uio
0000:03:00.0 ‘RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller’ if=eth1 drv=r8169 unused=igb_uio *Active*

Other network devices

0000:01:00.1 ‘82576 Gigabit Network Connection’ unused=igb,igb_uio

Enter PCI address of device to bind to IGB UIO driver: 0000:01:00.1

Enter name of kernel driver to bind the device to: igb

发表评论

表情:
评论列表 (有 0 条评论,363人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Linux 两块网卡

    主要作用是避免单块网卡故障导致网络中断,通过双网卡提高可靠性 1、添加一块网卡 确保新添加的网卡与之前的网卡处于同一种网络模式,这里我们统一调整为NAT模式 并确认网

    相关 网卡7种模式

    网卡绑定7种模式 常用的三种: mode=0:平衡负载模式,有自动备援,但需要”Switch”支援及设定。 mode=1:自动备援模式,其中一条线若断线,其他线路将