[PATCH v4 4/5] common/nfp: use new API to parse kvargs
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 6 04:19:06 CET 2023
On Sun, 5 Nov 2023 05:45:38 +0000
Chengwen Feng <fengchengwen at huawei.com> wrote:
> if (rte_kvargs_count(kvargs, RTE_DEVARGS_KEY_CLASS) != 0) {
> - rte_kvargs_process(kvargs, RTE_DEVARGS_KEY_CLASS,
> - nfp_kvarg_dev_class_handler, &dev_class);
> + rte_kvargs_process_opt(kvargs, RTE_DEVARGS_KEY_CLASS,
> + nfp_kvarg_dev_class_handler, &dev_class);
> }
Since kvargs_process() already does a scan, the kvargs_count() cause an extra pass.
More information about the dev
mailing list