From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id EDA389576 for ; Fri, 13 Nov 2015 15:42:02 +0100 (CET) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 2CA42B0CED; Fri, 13 Nov 2015 14:42:02 +0000 (UTC) Received: from aconole.bos.csb (dhcp-25-177.bos.redhat.com [10.18.25.177]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tADEg0iP019911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 Nov 2015 09:42:01 -0500 From: Aaron Conole To: Panu Matilainen References: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> <20151111162853.GA38496@bricha3-MOBL3> <56448CB5.8070102@redhat.com> Date: Fri, 13 Nov 2015 09:42:00 -0500 In-Reply-To: <56448CB5.8070102@redhat.com> (Panu Matilainen's message of "Thu, 12 Nov 2015 14:57:25 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 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: Fri, 13 Nov 2015 14:42:03 -0000 Panu Matilainen writes: > On 11/11/2015 06:28 PM, Bruce Richardson wrote: >> 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 >>> >> >> Hi Francesco, >> >> I'm not aware of any way to make the bindings permanent across >> reboots. What you >> have suggested will work, but there are probably better ways to do >> the same thing. >> For example, a couple of lines in an rc.local script can reapply the >> bindings at >> boot for you. I'm sure others can suggest other ways of having the >> same effect, >> for example, there may be a way to automatically do this using udev or systemd >> or some such package. > > I've been looking into this recently, here's what I have so far: > http://laiskiainen.org/git/?p=driverctl.git > I've been using this recently, on my systems. +1 for driverctl :-)