[PATCH] dma/idxd: fix missing default for workqueue options

Pai G, Sunil sunil.pai.g at intel.com
Mon Jun 20 06:09:33 CEST 2022


> From: Richardson, Bruce <bruce.richardson at intel.com>
> Sent: Friday, June 17, 2022 4:48 PM
> To: dev at dpdk.org
> Cc: Laatz, Kevin <kevin.laatz at intel.com>; Pai G, Sunil
> <sunil.pai.g at intel.com>; Richardson, Bruce <bruce.richardson at intel.com>
> Subject: [PATCH] dma/idxd: fix missing 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 at intel.com>
> ---

LGTM
Acked-by: Sunil Pai G <sunil.pai.g at intel.com>


More information about the dev mailing list