From: Bruce Richardson Date: Tue, 24 Nov 2020 09:46:56 +0000 (+0000) Subject: usertools: fix binding regex or misc device X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=f32fed83db8ba3f929d520bd370df612728a130b usertools: fix binding regex or misc device 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. Bugzilla ID: 582 Fixes: 81255f27c65c ("usertools: replace optparse with argparse") Reported-by: Wei Ling Signed-off-by: Bruce Richardson Acked-by: Stephen Hemminger Tested-by: Yu Jiang --- diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 054ad2e1cf..c2ede3d4df 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -634,7 +634,8 @@ To bind 0000:02:00.0 and 0000:02:00.1 to the ixgbe kernel driver 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',