Re: [PATCH v2] kvargs: fix device iterator match from arguments

2021-11-24 Thread Xueming(Steven) Li
On Wed, 2021-11-24 at 12:07 +0100, Olivier Matz wrote: > Hi Xueming, > > On Wed, Nov 24, 2021 at 06:17:40PM +0800, Xueming Li wrote: > > Device iterator RTE_DEV_FOREACH() failed to return devices from > > classifier like "class=vdpa", because matching name from empty kvargs > > returns no result.

Re: [PATCH v2] kvargs: fix device iterator match from arguments

2021-11-24 Thread Olivier Matz
Hi Xueming, On Wed, Nov 24, 2021 at 06:17:40PM +0800, Xueming Li wrote: > Device iterator RTE_DEV_FOREACH() failed to return devices from > classifier like "class=vdpa", because matching name from empty kvargs > returns no result. If device name not specified in kvargs, the function > should itera

[PATCH v2] kvargs: fix device iterator match from arguments

2021-11-24 Thread Xueming Li
Device iterator RTE_DEV_FOREACH() failed to return devices from classifier like "class=vdpa", because matching name from empty kvargs returns no result. If device name not specified in kvargs, the function should iterate all devices. This patch allows empty devargs or devargs without name specifie