devargs: support path value with global device syntax
authorXueming Li <xuemingl@nvidia.com>
Wed, 20 Oct 2021 15:47:37 +0000 (23:47 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Oct 2021 09:32:06 +0000 (11:32 +0200)
commit9a1a9e4a2ddde3f6dfa30689b7ccee52ddb9be2e
treea5b327b078383a552f2f46ed64d32a5a4f1586e0
parentefc6f9104c80d39ec168d9559accdc7609274eca
devargs: support path value with global device syntax

Slash is used to split global device arguments.

To support path value which contains slash, this patch parses devargs by
locating both slash and layer name key:
  bus=a,name=/some/path/class=b,k1=v1/driver=c,k2=v2
"/class=" and "/driver" are valid start of a layer.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Gaetan Rivet <grive@u256.net>
lib/eal/common/eal_common_devargs.c