Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp175510rwj; Thu, 22 Dec 2022 01:06:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXv0nkTuX8KpL8Sl9qSjcQi8WkCSpEcE0lBbuKEj7lqQWxv9vJtouw5WMXjUPPH74lB+g7vb X-Received: by 2002:a17:906:2813:b0:829:59d5:e661 with SMTP id r19-20020a170906281300b0082959d5e661mr3831835ejc.29.1671699969136; Thu, 22 Dec 2022 01:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671699969; cv=none; d=google.com; s=arc-20160816; b=YQtIWOwpd+Hr6EpgLUl3l61OJr6OeJx/3Wg4Vw5DNxyvHkppBJ0JS8ix05qfxgnLgF V7e4hrrvyRMNHGN4ifae16fnnWTUrKxDaUYKOEFtWZ4FAbjXgOGnmqJOwk2y+1UGonSg zFUv1RIsYixa8uIlLuUtP2VMJSqp6JxfOBE5yD5UeLHpRqufOPuKBJexuuIu3QExs8Hi 2zLxeBkp6Kn0/dRyoRk7AMY0CAVGphBQXjbtTWf8OPaez4+G4QlqDojpE14CNWkCgjKy QNTh1KvSC+yuRgqkmSj54wGA/xDBFu0iBXoMDWKuBOTpRaioe7Sv3snCkfTH89N5tt2f AzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rihYLtMNexBi4ea2dVCxoV+JrDk3iR9PPcCTgjqYYNs=; b=qp3h3DlH6xnYGJ/T8q6eElG3YGP4xT8DN80ebsWW3nOhV45MzeFp1Ey0bNWfD6v9p7 T88CDV9pF0CFTFxR7dKRZzweM4ysQLsfd0OQdileQndUv21DpAZ6Gl+6jwSXVSa0dSWS zFEYtiJJh4qLl4XprLmS1rRtJ/5XM4HJqTOqdjJAR5AHjcqO8r0SOZxlXtS3oBwCz4PE bRz3fJA8EeLUtgFGP5wLbB9FMoE+857j/4PqqC+eO+fvvZiU8JczTlXXiFErAB2MNJfm 1wOuhYoCbtOOmtOKFmLeWx3M6hF4c1Cp4TMutMlhDELHQ/vWzjr+L9qSQ6owoJwv1w/m agYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W3vkOwbP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170906794a00b007806a130086si46911ejo.302.2022.12.22.01.05.53; Thu, 22 Dec 2022 01:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W3vkOwbP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234972AbiLVIvg (ORCPT + 67 others); Thu, 22 Dec 2022 03:51:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235042AbiLVIva (ORCPT ); Thu, 22 Dec 2022 03:51:30 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E52FB07 for ; Thu, 22 Dec 2022 00:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671699048; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rihYLtMNexBi4ea2dVCxoV+JrDk3iR9PPcCTgjqYYNs=; b=W3vkOwbPutpLhyEZnePiaEiYRKSYFx3KpKsFUbYdMJsPGD1LA5FuP5kREEqzyMtJNxNhBQ 2m5L/lnXe/oFK4nS9aA9MaAl2NeQw+cd5PSZG4aAn/Pj5mQ1SCg2/tTt6vPDKWFmZ15isp VUSXugceer9CRvn4oMQIjTd++J+EYpo= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-204-il0yr_5sP4ivvV72oo3l6g-1; Thu, 22 Dec 2022 03:50:46 -0500 X-MC-Unique: il0yr_5sP4ivvV72oo3l6g-1 Received: by mail-ed1-f72.google.com with SMTP id s13-20020a056402520d00b0046c78433b54so1058861edd.16 for ; Thu, 22 Dec 2022 00:50:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rihYLtMNexBi4ea2dVCxoV+JrDk3iR9PPcCTgjqYYNs=; b=uyhPwqzJAOqQxpAhChqoKa00k/16wWiUlbD8cSizYw176/C6MLm/CBL6UdlpCSl9fr 39Tej3GVscuuJpmTiCDhqCMyEQEG6RZMpCP+5BSfeRynQBYSeU9q0odpaTVDHtjMdCCn nz3NC85Lsir3ZvaAo+1yBjSwHXKqyzhbPj5v+B40Z5ejAdvwjyPoYOiL56dR/65du8p7 iqFbC2h+7kZeNzXoSL4xxAWoXGdpgMKojUfsbiNCG+glT2ILhMNcIQQexAopXQGlbnvH +W5UHBrTNr6Ijp4qP3DSlwqGBPpAAbUmjhiB9C+HCBscX6/r9im+DAbp4ATOm58d54ku 3Msg== X-Gm-Message-State: AFqh2kq8sGdR4qHZP5ONJeV6o5YtggeK9IDXRc1hbKyaxSa2sJY1iorv oCwn8aiuRbEh3VFs7/3E9kn61hxZu6tV/CGnn4bs4t44Dmt1T8IVUQKkyS/T9ZOk0jcnhgyt6fB PkeV/9EphMHvyHjbtlJen9pRBBIJ29VxSJQtv26VE X-Received: by 2002:a05:6402:a56:b0:479:4078:401a with SMTP id bt22-20020a0564020a5600b004794078401amr586697edb.92.1671699045190; Thu, 22 Dec 2022 00:50:45 -0800 (PST) X-Received: by 2002:a05:6402:a56:b0:479:4078:401a with SMTP id bt22-20020a0564020a5600b004794078401amr586695edb.92.1671699045045; Thu, 22 Dec 2022 00:50:45 -0800 (PST) MIME-Version: 1.0 References: <20221222050052.20785-1-jasowang@redhat.com> In-Reply-To: <20221222050052.20785-1-jasowang@redhat.com> From: Eugenio Perez Martin Date: Thu, 22 Dec 2022 09:50:08 +0100 Message-ID: Subject: Re: [PATCH V2 0/4] Vendor stats support in vdpasim_net To: Jason Wang Cc: mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 22, 2022 at 6:01 AM Jason Wang wrote: > > Hi All: > > This series implements vendor stats in vdpasim_net. Please review. > > Thanks > Apart from the commented blanks, Acked-by: Eugenio P=C3=A9rez Thanks! > Changes since V1: > - typo fixes > - move the duplicated get_vendor_vq_stats() in > vdpasim_batch_config_ops to vdpa_sim_config_ops > - use -EOPNOTSUPP instead of -EINVAL in vdpasim_get_vq_stats > - introdce a dedicated variable to record the successful cvq request > and track the number of requests correctly > > Jason Wang (4): > vdpa_sim: switch to use __vdpa_alloc_device() > vdpasim: customize allocation size > vdpa_sim: support vendor statistics > vdpa_sim_net: vendor satistics > > drivers/vdpa/vdpa_sim/vdpa_sim.c | 33 +++- > drivers/vdpa/vdpa_sim/vdpa_sim.h | 4 + > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 1 + > drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 221 ++++++++++++++++++++++++++- > 4 files changed, 248 insertions(+), 11 deletions(-) > > -- > 2.25.1 >