Skip to content

DPDK important points

Antti Kantee edited this page Mar 24, 2014 · 5 revisions

Blacklisting your MNG interface

Note: applies to DPDK 1.5 and earlier

From looking at the code you can see the following default arguments that are sent to DPDK init function:

static const char *ealargs[] = { "if_virt", "-b 00:00:03.0", "-c 1", "-n 1", };

If you notice you will see the "-b 00:00:03.0", when DPDK init is called it is trying to find and bind it self to any possible interface in your computer. This behavior means that you might lose connectivity to the machine or internet connection as the interfaces are no longer visible to the kernel.

In order to avoid this, you can blacklist a certain interface with the "-b" argument, for example if you want to blacklist eth0 from being binded to DPDK perform the following:

find the bus-info of the interface (using 'ethtool -i eth0') and add it as an argument using "-b" (you can blacklist more then one interface)

Clone this wiki locally