From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C923A0C52; Wed, 24 Nov 2021 14:45:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C58640040; Wed, 24 Nov 2021 14:45:05 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8EB674003C for ; Wed, 24 Nov 2021 14:45:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637761502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GZXqwqH7KDpjHhLYTnD2DI6HUtKn2T+2vaUX0OLi/BE=; b=Fmv0zEB9/NRmANzctm5JR/vM7OjaqAscBfbJ42xuYtpeKXD3kg0hI4euGK8dm178JzPKuR IEwx+dulEQxZG9N8lwO9A111fBx7C2WcMZSjymIH7J63+9W2RdtSq/znhDuTgCsTtwl0sm vPPDRxrI3T7am3haIexlLJ3Gduuwc9s= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-340-L5b4IMNqMeCfdr1_avGiGg-1; Wed, 24 Nov 2021 08:45:01 -0500 X-MC-Unique: L5b4IMNqMeCfdr1_avGiGg-1 Received: by mail-lf1-f72.google.com with SMTP id c14-20020a056512104e00b004036d17f91bso1418316lfb.17 for ; Wed, 24 Nov 2021 05:45:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GZXqwqH7KDpjHhLYTnD2DI6HUtKn2T+2vaUX0OLi/BE=; b=pQpZWYTaMZcmzbfwQkWem291wf4OiInphqp91SL5sZ5e1YF96BADjutI+sN1PYQ0jx E6uw2FwtZ1MVsmRNqr7EbBFoJkRAF7Z6+wDaxxJlkZdcJgzd5NtS+VKlzUffVbadulcm qlxtbGBw5XpzScQD+yrekr9Fo3MvxBHe0eaLqOQYNP1YbalLZI8L6CjYG8wqV2DBhTXd KxqIaChKb2hQpRJGTjq+LaFQImmFB5wrQ0cXLUG/JhqscTlaCSNIPr2SKhlGWotbb9Ov /WfllWcMaXsuXGJAeQKcybFLGtq9EtMLUrR6au2WcFryAQWGdzVmcuGfXZBtBuXh0zS/ 5rHA== X-Gm-Message-State: AOAM531V5nigunxN07HjrG4vvCQjVVBBA7aRWyFz82Ig4qwOCC+Nid9G JnrZ8ujOSfkGKCVG81eThsIYvdPxx5HRX1lAEpzT3OGhGjDuB2NGhaK/j7rGfAjq1doSbj0uQfQ HBH+wPovHiWOyPkeiAIg= X-Received: by 2002:a2e:8189:: with SMTP id e9mr15644427ljg.333.1637761500005; Wed, 24 Nov 2021 05:45:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkVHaF+lovacZ3NBXiuPUvN9GMwpg+c3eG36EJdoQOKOZBR2RUTvjlHy71nATq+mkiqAYyO8Byl01hpfyr4yE= X-Received: by 2002:a2e:8189:: with SMTP id e9mr15644401ljg.333.1637761499828; Wed, 24 Nov 2021 05:44:59 -0800 (PST) MIME-Version: 1.0 References: <20211122061250.3220823-1-xuemingl@nvidia.com> <20211124124524.25754-1-olivier.matz@6wind.com> <02e22b94976f259d378e686ceb0496b0bf0d7395.camel@nvidia.com> In-Reply-To: <02e22b94976f259d378e686ceb0496b0bf0d7395.camel@nvidia.com> From: David Marchand Date: Wed, 24 Nov 2021 14:44:48 +0100 Message-ID: Subject: Re: [PATCH v4] bus: fix device iterator match from arguments To: "Xueming(Steven) Li" , "olivier.matz@6wind.com" Cc: "dev@dpdk.org" , Lior Margalit , Parav Pandit , "mdr@ashroe.eu" Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 result. If device name not specified in kvargs, the function > > should iterate all devices. > > > > This patch allows empty devargs or devargs without name specified. > > > > Fixes: 6aebb942907d ("kvargs: add function to get from key and value") > > > > Signed-off-by: Xueming Li > > Signed-off-by: Olivier Matz > Acked-by: Xueming Li Added test_vdev.c in MAINTAINERS vdev bus section. Applied, thanks. -- David Marchand