]> git.droids-corp.org - dpdk.git/commit
dma/idxd: fix default for workqueue options
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 17 Jun 2022 11:17:50 +0000 (12:17 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Jun 2022 15:33:30 +0000 (17:33 +0200)
commit4b918c1ad9f5981ef66f246979aa721b608c88ed
tree69617f74742b36389cf06387e85ca75e7223ed9d
parent101f4508a2857fcff9bdb3f8a8d106f279e6ad53
dma/idxd: fix default for workqueue options

When no --wq-option flag is passed to dpdk_idxd_cfg.py script, the
default value used by argparse is None. This leads to later errors which
are expecting an array value:

TypeError: 'NoneType' object is not iterable

This is fixed by specifying that the empty array should be the default
if no flags are passed.

Fixes: 94b0f04dc0e3 ("dma/idxd: add generic option for queue config")
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Sunil Pai G <sunil.pai.g@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/idxd/dpdk_idxd_cfg.py