From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E56ABA04AF; Thu, 20 Aug 2020 17:43:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE05E1C0BF; Thu, 20 Aug 2020 17:43:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 14D6A1BEC4 for ; Thu, 20 Aug 2020 17:43:47 +0200 (CEST) IronPort-SDR: SFuhYnAtkeytpyeMYBvvRhGG55DuSPw1qmmTqaLJh4P5xuLf0SeVCl7ETsjzYGeYCbh8QFJMeG f6vXpwmBdGOQ== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="219632654" X-IronPort-AV: E=Sophos;i="5.76,333,1592895600"; d="scan'208";a="219632654" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 08:43:47 -0700 IronPort-SDR: x7lgDFsJcCvGqhER90O0tdNScOzIbAwjkqQK8hgeqYUqCmirYYL4kd+A1817Onl9f3riESzS9j 27weZ2fq8r8A== X-IronPort-AV: E=Sophos;i="5.76,333,1592895600"; d="scan'208";a="472698512" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.0.88]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 20 Aug 2020 08:43:46 -0700 Date: Thu, 20 Aug 2020 16:43:42 +0100 From: Bruce Richardson To: Ferruh Yigit Cc: dev@dpdk.org, anatoly.burakov@intel.com Message-ID: <20200820154342.GA824@bricha3-MOBL.ger.corp.intel.com> References: <20200820122355.3357-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] [PATCH] usertools/dpdk-devbind: add support for PCI wildcards X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Aug 20, 2020 at 03:44:54PM +0100, Ferruh Yigit wrote: > On 8/20/2020 1:23 PM, Bruce Richardson wrote: > > When binding or unbinding a range of devices, it can be useful to use > > wildcards to specify the devices rather than repeating the same prefix > > multiple times. We can use the python "glob" module to give us this > > functionality - at least for PCI devices - by checking /sys for matching > > files. > > > > Examples of use from my system: > > > > ./dpdk-devbind.py -b vfio-pci 80:04.* > > ./dpdk-devbind.py -u 80:04.[2-7] > > > > The first example binds eight devices, 80:04.0..80:04.7, to vfio-pci. The > > second then unbinds six of those devices, 80:04.2..80:04.7, from any > > driver. > > > > Signed-off-by: Bruce Richardson > > This is useful, thanks. > Tested-by: Ferruh Yigit > > It can be good to document this new capability in the 'help' output > (./usertools/dpdk-devbind.py --usage). Yep, good point, added in V2.