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 430E8A04B1; Tue, 8 Sep 2020 23:44:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A94F21BEAC; Tue, 8 Sep 2020 23:44:42 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id 402BF255 for ; Tue, 8 Sep 2020 23:44:41 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id EBF57116D; Tue, 8 Sep 2020 17:44:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 08 Sep 2020 17:44:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= NKpgiFwKD1XlRGNNZTP0RbOWoqJtitqkc+6KWvzr4AY=; b=sWfrcPQjtHhCA4oY v6q4LMsZDf2x8mTeIllPbdHS5UZ+dqzzQOmYqJ3r3QsMo0hm8yFR6/T/o6HCRrvd cqdM9XQ4lhE9sJSNosQCx2EV7eIIVAmfSKBt1YwcTh8/YezSMcMRTJmP0Bo0eJj+ rvHRwlhTAitH6tvOb8tp2xR01yWE7Hnic87hScUPiXrGF0onIrJWneoI3qY6Egg6 Xi1EJKvp/ag0LFn9W6babxo3HHjLMkMMFJ1oWxVqnp21esTPMNjGOMsZqIK+3bu3 xIgekzFS8VH1kWfXAl8g9s2BxmbWN6UendSMmMdatUpVpibo0cNdKY2t5JJfGLUi p1SGdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=NKpgiFwKD1XlRGNNZTP0RbOWoqJtitqkc+6KWvzr4 AY=; b=vXTTVqXHg6wKhJP0IBiSyO0y7LfvXaxvEK34FyEuwEq3vHCsb6G6Uflz2 yrij9/El7icHdVu3p8he6e1jzzYs/11XUOutBJBdnHxfaS6bxvG4zwz+vMAVfg/u z5y9M0d9+WSIAplLKzkkO+MTpVjLERz2tlV9dXgOASNzt9vHRMVknHwBcvCX0JdI m1yVHXq1Jn1y3iRqVbs2Jh3xIsfnhoAgWZs1qA+y8pGA/Q7wd44bPaE7zotgD85o tQkOY1l8tkWMYO34gHJJYyM7KdL127ielgq1f4h1qfZIBglmVLkz+0SLOqMX6+lk tQKDCeWYJCc6f3PpxWw56lz05wrPQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehgedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5C71C3064680; Tue, 8 Sep 2020 17:44:38 -0400 (EDT) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org, Anatoly Burakov , Ferruh Yigit Date: Tue, 08 Sep 2020 23:44:36 +0200 Message-ID: <5022801.65yoYiygOP@thomas> In-Reply-To: <59412b77-a754-598e-df39-ed444e56fbcb@intel.com> References: <20200820122355.3357-1-bruce.richardson@intel.com> <20200824170439.62564-1-bruce.richardson@intel.com> <59412b77-a754-598e-df39-ed444e56fbcb@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4] 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" 28/08/2020 17:48, Ferruh Yigit: > On 8/24/2020 6:04 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 > > Tested-by: Ferruh Yigit Applied, thanks