From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id E2C1BA04B1;
	Fri, 28 Aug 2020 18:02:35 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 3C4801C021;
	Fri, 28 Aug 2020 18:02:35 +0200 (CEST)
Received: from mga07.intel.com (mga07.intel.com [134.134.136.100])
 by dpdk.org (Postfix) with ESMTP id 30C281C00D
 for <dev@dpdk.org>; Fri, 28 Aug 2020 18:02:33 +0200 (CEST)
IronPort-SDR: owamGVGhN8++GUrpqdKigfyxP44ardz+u7zKmjvoVG17kUPC6GPAOO5DIAfcBsvgxflC77rXrb
 g3bkwocUJ6Dw==
X-IronPort-AV: E=McAfee;i="6000,8403,9727"; a="220938333"
X-IronPort-AV: E=Sophos;i="5.76,364,1592895600"; d="scan'208";a="220938333"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga006.fm.intel.com ([10.253.24.20])
 by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 28 Aug 2020 09:02:25 -0700
IronPort-SDR: astLU8+VwoTsWrrdg7fQSwip/jp6lRC634+6I7wXboUcwBEPR9xWDtbZycUYtd3mx2lUcEJ16x
 GYu26iFFvy2A==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.76,364,1592895600"; d="scan'208";a="500546046"
Received: from irsmsx603.ger.corp.intel.com ([163.33.146.9])
 by fmsmga006.fm.intel.com with ESMTP; 28 Aug 2020 09:02:22 -0700
Received: from irsmsx606.ger.corp.intel.com (163.33.146.139) by
 irsmsx603.ger.corp.intel.com (163.33.146.9) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
 15.1.1713.5; Fri, 28 Aug 2020 17:02:21 +0100
Received: from irsmsx606.ger.corp.intel.com ([163.33.146.139]) by
 IRSMSX606.ger.corp.intel.com ([163.33.146.139]) with mapi id 15.01.1713.004;
 Fri, 28 Aug 2020 17:02:21 +0100
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: "Richardson, Bruce" <bruce.richardson@intel.com>, "dev@dpdk.org"
 <dev@dpdk.org>
CC: "Yigit, Ferruh" <ferruh.yigit@intel.com>, "Richardson, Bruce"
 <bruce.richardson@intel.com>
Thread-Topic: [PATCH v4] usertools/dpdk-devbind: add support for PCI wildcards
Thread-Index: AQHWfVQviHHFo1BC5k+BE/yZx9Ykm6lNrnzw
Date: Fri, 28 Aug 2020 16:02:21 +0000
Message-ID: <70f23ddf88074d3ca2d291b8d6f14380@intel.com>
References: <20200820122355.3357-1-bruce.richardson@intel.com>
 <20200824170439.62564-1-bruce.richardson@intel.com>
In-Reply-To: <20200824170439.62564-1-bruce.richardson@intel.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
dlp-product: dlpe-windows
dlp-reaction: no-action
dlp-version: 11.5.1.3
x-originating-ip: [163.33.253.164]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

Thanks,
Anatoly

> -----Original Message-----
> From: Bruce Richardson <bruce.richardson@intel.com>
> Sent: Monday, August 24, 2020 6:05 PM
> To: dev@dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit@intel.com>; Burakov, Anatoly
> <anatoly.burakov@intel.com>; Richardson, Bruce
> <bruce.richardson@intel.com>
> Subject: [PATCH v4] usertools/dpdk-devbind: add support for PCI wildcards
>=20
> 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.
>=20
> Examples of use from my system:
>=20
>     ./dpdk-devbind.py -b vfio-pci 80:04.*
>     ./dpdk-devbind.py -u 80:04.[2-7]
>=20
> 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 driv=
er.
>=20
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>=20
> ---