From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber_org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=r/A9gFpL17nlPD6IUKMsby7T50QIUn2Aweh+lrx1vNA=; b=GH0RvDNaRs6JYPM5NH+PyoWzE7rksSh+mYA/IaGFtdnL7U0gGbBs+PVQAI1p1zSrnp +h49G4dqfDQPfi3gA2QQvkLvxLfMnLf5uZ24cX/QT91yciKQqKqa+K9NF2YxMvCjHZxn pwVladvZnzb/m3T4bCcXCvdTBDf7C1mYkL8MJyrMfWQHiImnvyOO//YKjwA5h+sXclWk hkziVdUVCFtV+z8YKptHzFGcjrU6XdbNpWaouI6ot7NqtR+G8l0rcs8rk60+t6/GKeJ8 cc8lSZ0c86m0mr+2F+r3vUzrl3L6ueXmJG9yxiCsHsRMqNUtdF+hQpTBUP4t0r+FuOv0 TX/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=r/A9gFpL17nlPD6IUKMsby7T50QIUn2Aweh+lrx1vNA=; b=c6FLEXuM0YjtL2RMa9ybvObyRPwxFRRQIbAPy2UDaT7v36BYxIdQAKwZIWN2D9c82L gtUaBP23wZtne00GAnVbptilkZbwfzPQ2QecAOnadi5WJ4bCbU7n3qsS+UhYcgy9/0Z4 V4xS3z6/zyB94W/e7W+bb04U2Ib6s9WrESvq3tr+0svzaorZC0DRRSMjCNjJ4zdiW8v1 DqCYNODkTe5qx4OD3Op9jTtn2GvVN3mGCwR6fnqnEKwtUf+njc4kWMyjomwrkumfWR/r Vw1etJXb3XPnm0lWLxyGoGRX7ds23VXYTr7VJJodAeerMgTU/tdEwHr0P5krRQGGTtIh 1kTg== X-Gm-Message-State: ALoCoQlimoqMI28OMd78BZz3NuEtjESBjesyljt9hj25V0o0TDzCgQNGkd7EIo78pZrmGNh6DjIx X-Received: by 10.66.248.106 with SMTP id yl10mr15959698pac.73.1447262976642; Wed, 11 Nov 2015 09:29:36 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id ux3sm10412873pac.18.2015.11.11.09.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2015 09:29:36 -0800 (PST) Date: Wed, 11 Nov 2015 09:29:44 -0800 From: Stephen Hemminger To: "Montorsi, Francesco" Message-ID: <20151111092944.73fa77ce@xeon-e3> In-Reply-To: <289cd55a3a7b498c974a083927fc81cc@bilemail1.empirix.com> 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" 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 17:29:38 -0000 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.