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 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 ; 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 To: dev@dpdk.org Cc: Bruce Richardson , stephen@networkplumber.org, Wei Ling 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: References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Signed-off-by: Bruce Richardson --- 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