In my development environment I set up an at-boot provisioning script that
does it. I recommend using scripts and not shelling out from C code. ;)
On Wed, Nov 11, 2015 at 04:13:01PM +0000, Montorsi, Francesco wrote:
> Hi,
> Is there a way to permanently (i.e., have the configuration automatically
> applied after reboot) bind a NIC port to DPDK?
>
> In case there's none, I'm thinking to save in my software a list of the NIC
> ports chosen by the user for use with DPDK and then, upon software startup to
> just do
> for (int i=0; i < ...; i++)
> system("dpdk_nic_bind.py --bind=igb_uio " + PCI_device_chosen[i]);
> Do you see any problem with that?
>
> Thanks!
> Francesco Montorsi
>