devargs: parse global device syntax
authorXueming Li <xuemingl@nvidia.com>
Tue, 13 Apr 2021 03:14:12 +0000 (03:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Sep 2021 15:02:27 +0000 (17:02 +0200)
commitb344eb5d941a7522ff27b6b7b5419f68c3fea9a0
tree164149cfa5c5e4c31692b92bfeb197e295290aa4
parentd2a66ad79480425dc510dc5015918d1c8b7db508
devargs: parse global device syntax

When parsing a devargs, try to parse using the global device syntax
first. Fallback on legacy syntax on error.

Example of new global device syntax:
 -a bus=pci,addr=82:00.0/class=eth/driver=mlx5,dv_flow_en=1

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Gaetan Rivet <grive@u256.net>
doc/guides/rel_notes/release_21_11.rst
lib/eal/common/eal_common_devargs.c
lib/ethdev/rte_ethdev.c