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 0967BA04B1;
	Tue, 24 Nov 2020 10:47:18 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 72F7BC8F2;
	Tue, 24 Nov 2020 10:47:16 +0100 (CET)
Received: from mga18.intel.com (mga18.intel.com [134.134.136.126])
 by dpdk.org (Postfix) with ESMTP id 0CCD7F12
 for <dev@dpdk.org>; Tue, 24 Nov 2020 10:47:14 +0100 (CET)
IronPort-SDR: cvJV/+BkOii5tNSTi9TcMQvenXfnSUZrCqmYIdMLaltJCv/Pts+xPoUB2vjCP8K5q3Y9fA3Sca
 ZVp5MoF7cD5w==
X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="159685991"
X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="159685991"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga004.fm.intel.com ([10.253.24.48])
 by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 24 Nov 2020 01:47:12 -0800
IronPort-SDR: zENJzAO00nYuVCtP/KJzmtmVd4m0RD5VW8hU/9WY9ZiuVbXA7K2uBlcZEf89O+JNZhbjM9/2sE
 7FPKVU+22VXA==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="361810525"
Received: from silpixa00399126.ir.intel.com ([10.237.222.4])
 by fmsmga004.fm.intel.com with ESMTP; 24 Nov 2020 01:47:11 -0800
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>, stephen@networkplumber.org,
 Wei Ling <weix.ling@intel.com>
Date: Tue, 24 Nov 2020 09:46:56 +0000
Message-Id: <20201124094656.46507-1-bruce.richardson@intel.com>
X-Mailer: git-send-email 2.27.0
In-Reply-To: <bug-582-3@http.bugs.dpdk.org/>
References: <bug-582-3@http.bugs.dpdk.org/>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH] usertools/dpdk-devbind: fix missing device
	classes
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>

The "misc" and "regex" device classes were missing from the list used to
check arguments, preventing them from being used with "--status-dev"
flag to list only devices of those types.

When adding them to the list, the list is also sorted alphabetically for
consistency.

Fixes: 81255f27c65c ("usertools: replace optparse with argparse")
Cc: stephen@networkplumber.org

Bugzilla ID: 582

Reported-by: Wei Ling <weix.ling@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 usertools/dpdk-devbind.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index 054ad2e1c..c2ede3d4d 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -634,7 +634,8 @@ def parse_args():
     parser.add_argument(
         '--status-dev',
         help="Print the status of given device group.",
-        choices=['net', 'baseband', 'crypto', 'event', 'mempool', 'compress'])
+        choices=['baseband', 'compress', 'crypto', 'event',
+                'mempool', 'misc', 'net', 'regex'])
     bind_group = parser.add_mutually_exclusive_group()
     bind_group.add_argument(
         '-b',
-- 
2.27.0