From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id ECE9E8DA9 for ; Wed, 11 Nov 2015 20:01:21 +0100 (CET) Received: by mail.mhcomputing.net (Postfix, from userid 1000) id 7146C400; Wed, 11 Nov 2015 14:01:21 -0500 (EST) Date: Wed, 11 Nov 2015 14:01:21 -0500 From: Matthew Hall To: "Montorsi, Francesco" Message-ID: <20151111190121.GB18270@mhcomputing.net> References: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Permanently binding NIC ports with DPDK drivers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 19:01:22 -0000 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 >