Re: [PATCH v4] bus: fix device iterator match from arguments

2021-11-24 Thread David Marchand
On Wed, Nov 24, 2021 at 2:00 PM Xueming(Steven) Li wrote: > On Wed, 2021-11-24 at 13:45 +0100, Olivier Matz wrote: > > From: Xueming Li > > > > Device iterator RTE_DEV_FOREACH() failed to return devices from > > classifier like "class=vdpa", because matching name from empty kvargs > > returns no

Re: [PATCH v4] bus: fix device iterator match from arguments

2021-11-24 Thread Xueming(Steven) Li
On Wed, 2021-11-24 at 13:45 +0100, Olivier Matz wrote: > From: 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

[PATCH v4] bus: fix device iterator match from arguments

2021-11-24 Thread Olivier Matz
From: 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 wi