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

2021-11-24 Thread Xueming(Steven) Li
On Tue, 2021-11-23 at 21:02 +0100, Olivier Matz wrote: > Hello Xueming, > > On Tue, Nov 23, 2021 at 12:49:32PM +, Xueming(Steven) Li wrote: > > On Tue, 2021-11-23 at 13:31 +0100, Olivier Matz wrote: > > > On Tue, Nov 23, 2021 at 11:25:22AM +, Xueming(Steven) Li wrote: > > > > On Tue, 2021-

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

2021-11-23 Thread Olivier Matz
Hello Xueming, On Tue, Nov 23, 2021 at 12:49:32PM +, Xueming(Steven) Li wrote: > On Tue, 2021-11-23 at 13:31 +0100, Olivier Matz wrote: > > On Tue, Nov 23, 2021 at 11:25:22AM +, Xueming(Steven) Li wrote: > > > On Tue, 2021-11-23 at 11:25 +0100, Olivier Matz wrote: > > > > Hi Xueming, > > >

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

2021-11-23 Thread Xueming(Steven) Li
On Tue, 2021-11-23 at 13:31 +0100, Olivier Matz wrote: > On Tue, Nov 23, 2021 at 11:25:22AM +, Xueming(Steven) Li wrote: > > On Tue, 2021-11-23 at 11:25 +0100, Olivier Matz wrote: > > > Hi Xueming, > > > > > > On Mon, Nov 22, 2021 at 02:12:50PM +0800, Xueming Li wrote: > > > > Device iterator

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

2021-11-23 Thread Olivier Matz
On Tue, Nov 23, 2021 at 11:25:22AM +, Xueming(Steven) Li wrote: > On Tue, 2021-11-23 at 11:25 +0100, Olivier Matz wrote: > > Hi Xueming, > > > > On Mon, Nov 22, 2021 at 02:12:50PM +0800, Xueming Li wrote: > > > Device iterator RTE_DEV_FOREACH() failed to return devices from > > > classifier li

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

2021-11-23 Thread Xueming(Steven) Li
On Tue, 2021-11-23 at 11:25 +0100, Olivier Matz wrote: > Hi Xueming, > > On Mon, Nov 22, 2021 at 02:12:50PM +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] kvargs: fix device iterator match from arguments

2021-11-23 Thread Olivier Matz
Hi Xueming, On Mon, Nov 22, 2021 at 02:12:50PM +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] kvargs: fix device iterator match from arguments

2021-11-21 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