From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: Permanently binding NIC ports with DPDK drivers Date: Wed, 11 Nov 2015 09:29:44 -0800 Message-ID: <20151111092944.73fa77ce@xeon-e3> References: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> <20151111162853.GA38496@bricha3-MOBL3> <289cd55a3a7b498c974a083927fc81cc@bilemail1.empirix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" To: "Montorsi, Francesco" Return-path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by dpdk.org (Postfix) with ESMTP id 919958E69 for ; Wed, 11 Nov 2015 18:29:37 +0100 (CET) Received: by pabfh17 with SMTP id fh17so36525420pab.0 for ; Wed, 11 Nov 2015 09:29:36 -0800 (PST) In-Reply-To: <289cd55a3a7b498c974a083927fc81cc@bilemail1.empirix.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 11 Nov 2015 16:59:14 +0000 "Montorsi, Francesco" wrote: > Hi Bruce, > > > -----Original Message----- > > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > > 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. > > I agree... let's see if somebody else has suggestions :) > > In any case my idea is to make my software as much independent as possible from troubles with future HW and future DPDK versions. A way to do that would be to leave all the bind steps and intelligence inside the dpdk_nic_bind.py script and just use that (since it will be probably always up to date and correct). My only concern is that (reading the python code) dpdk_nic_bind.py script does not return with an error code != 0 if something bad happens during binding... maybe it may be worth doing such a small change... > > Just my 2 cents, > Francesco > > > > I would recommend using PCI id's and not depending in anyway on port. If you want, I can submit a patch to add derive the systemd/udev compatiable name from existing DPDK port.