[dpdk-dev] Permanently binding NIC ports with DPDK drivers

Panu Matilainen pmatilai at redhat.com
Fri Nov 13 13:24:11 CET 2015


On 11/13/2015 01:48 PM, Montorsi, Francesco wrote:
> Hi John,
>
>> -----Original Message-----
>> From: Mcnamara, John [mailto:john.mcnamara at intel.com]
>>
>> The Ubuntu dpdk package for 15.10 contains system scripts with functions for
>> reserving hugepages and binding interfaces on bootup:
>>
>>
>>      /etc/dpdk/dpdk.conf
>>      /etc/dpdk/interfaces
>>      /etc/init.d/dpdk
>>      /lib/dpdk/dpdk-init
>>      /lib/systemd/system/dpdk.service
>>      /sbin/dpdk_nic_bind
>>      /usr/bin/testpmd
>>      /usr/share/doc/dpdk/README.Debian
>>      /usr/share/doc/dpdk/changelog.Debian.gz
>>      /usr/share/doc/dpdk/copyright
>>      /usr/share/dpdk/tools/cpu_layout.py
>>      /usr/share/dpdk/tools/dpdk_nic_bind.py
>>      /usr/share/dpdk/tools/setup.sh
>>      /usr/share/python/runtime.d/dpdk.rtupdate
>>
>>      http://packages.ubuntu.com/wily/amd64/dpdk/filelist
>>
>> If you have the latest version of Ubuntu you can check that out or else
>> download and extract the files from the .deb to see how they do it.
>>
>
> This certainly looks very useful. I inspected the package and the
> files you mentioned and indeed it looks like a good way to go, specially
> if Ubuntu distribution is moving in that direction (hopefully other
> distros will follow too).
>
> Thanks a lot!

The downside of the Ubuntu-approach is that the setup is fairly static 
and does not support automatically binding hotplugged devices, AFAICS.
Whether that matters to your use-case is of course en entirely different 
question.

	- Panu -

> Francesco
>
>



More information about the dev mailing list