DEV Community

林子篆
林子篆

Posted on • Originally published at dannypsnl.github.io on

1 2

DPDK usertools: devbind

After compiling DPDK, load module and start our process. A common problem is we have no idea where is the NIC going :).

And DPDK actually provides some tools for these operations, one of them is dpdk-devbind.py. It located at $(DPDK_PROJECT)/usertools/dpdk-devbind.py

We can use it to get current status:

$ dpdk-devbind.py --status
# shorthand
$ dpdk-devbind.py -s

Enter fullscreen mode Exit fullscreen mode

Bind driver:

$ dpdk-devbind.py --bind e1000e 00:06.0
# shorthand
$ dpdk-devbind.py -b e1000e 00:06.0
# we also can use NIC name, but remember that a NIC could have no name
# only PCI would always existed.
$ dpdk-devbind.py -b igb_uio eth1

Enter fullscreen mode Exit fullscreen mode

Unbind driver:

$ dpdk-devbind.py --unbind 00:06.0
# shorthand
$ dpdk-devbind.py -u 00:06.0
# equal to
$ dpdk-devbind.py --bind none 00:06.0

Enter fullscreen mode Exit fullscreen mode

p.s. Remember that these operations requiring permission(sudo or what).

Just that, have fun!

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay