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 D8226A0032; Wed, 11 May 2022 15:56:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84A9D40DDD; Wed, 11 May 2022 15:56:38 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4622F406B4 for ; Wed, 11 May 2022 15:56:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652277396; x=1683813396; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=pDRu4rSpDhuXV1LXRjgwdH7kyUnXay2NphxkdYzepIo=; b=enRV75F9NNRPpYrOO6Q+jUlbRMFa0Q0VsyqydZKkauxT86JoDshkSrd8 TpWK/9p1yPymKOO8wCX3MX1l3LO0sMm8JeUbQpxYpc2cJLSWlYa0+h3xg /Ni+s7Vuhq2U26dZQwXmsDxt4sSXLrR0M2HSPGcy7vbt8A/JOmTSrl/Ts DehtSronI/rTU7dmekF/SLEOJivFdguz2yXV1OCuWiYviuc2++5L4GPE6 Jqg0BIahHzqmZiovCcKgRm1ymScq8/xhHcSciwTFQ2sYvFvYik26g+0ku Iuaj1JAgaoEYLzWsx+WoDeDu+XiAh6fs7/s76FkyUahOev968N6W91hJj g==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="356127413" X-IronPort-AV: E=Sophos;i="5.91,217,1647327600"; d="scan'208";a="356127413" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 06:56:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,217,1647327600"; d="scan'208";a="566188537" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga007.jf.intel.com with ESMTP; 11 May 2022 06:56:34 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 11 May 2022 06:56:34 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 11 May 2022 06:56:33 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 11 May 2022 06:56:33 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 11 May 2022 06:56:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UnghBGcG71zdQBl8X/YbteUFuJfPAF1eATchiBIuYCjfC/PljVfiR5h3WM5VAqm80a0Xono8YH3jVVrL9p+/SeBopZZCGxsdKkrd2LjzD0zT6IKCn5WgMdrAqPRfu90PQp7rnu6Oiqh3R/3EvFJGx8N4KR8RnbbtoIaW79OYBd0JgONlyoEkPw7lwxydah05U4luyxoDnFDcfHXiuUWEtV/RsbnCZqjUT2f3RqvI/mYUolLEzFnsinR2AEcLuWkfrQLlt8LHJV6WkXIJXaeSYnLGupXnPYduj1iDAuejDu0Uq0+38OCmKO40bfpjuoSBR9K5uZMIBlKi5vQsTa64xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mLgL2F8h/Q0l/JASZ3H5CmAq2vUysZVTFmrg8ky2PqQ=; b=QHZ88Q00tDe58t7BTh+tHpW47ehsnNnMuSwc8rWkFodDkJCoT279RoNe6NbFY/2m3u7FiJH5tt+eCRfgMQAV0azyv/OYEfgQfosdQLMZJGXbT3pwOSL3hFEFVPzAOE2xW4wQbRhpIUyU/WdHnpKb9MTURDyGKQBPgt6RnwuLhy7zyVBamGyUH598BxKHkZJAAud8Zxs+5oKkcKhXcG5Qf/Gcf+ZbhLKopIsEYDUstQQmKmmfYtjcnx720SAoCypSS7obgsDEDiHbv2O5UBMrRNiPkPok/4ZklHvIxESeOVFKD8aF/AYnbXyteIwKZUUvddC6cwUH35wcp4T8VYyXOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by BYAPR11MB3686.namprd11.prod.outlook.com (2603:10b6:a03:fc::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22; Wed, 11 May 2022 13:56:30 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::2c8f:42df:ed85:99e5]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::2c8f:42df:ed85:99e5%4]) with mapi id 15.20.5227.023; Wed, 11 May 2022 13:56:30 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "david.marchand@redhat.com" , "i.maximets@ovn.org" Subject: RE: [PATCH 1/5] vhost: add per-virtqueue statistics support Thread-Topic: [PATCH 1/5] vhost: add per-virtqueue statistics support Thread-Index: AQHYZKsdY4ZptfEM5U2hiR1qjIg3NK0ZtGtw Date: Wed, 11 May 2022 13:56:30 +0000 Message-ID: References: <20220510201720.1262368-1-maxime.coquelin@redhat.com> <20220510201720.1262368-2-maxime.coquelin@redhat.com> In-Reply-To: <20220510201720.1262368-2-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0befa7e3-6ac7-45a7-34d9-08da33560cc6 x-ms-traffictypediagnostic: BYAPR11MB3686:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qlYcTOW6IAops3yvBXSL8cxZeK2NVsYxZlktOmY1BSk6aTb9yJ+BbH0kV0tsSR2pRDSigJqypN0b34jSlB5uc02cyRPl5c/zL3V6YYiLgELlTdnfVZsVUhDSe0E0BFfMVHZNDhvNQqEWxeJe3YUcgybew1rCUrrKR+7EDgA9tm0FpCI95unkJXWeGoAYOsr+0OygyDaESDKZeBXfi2Fp24pzHsXWVTeCfT9FxjuNMyISI1sVH1MNlqlytAp+9kuIjDXQC6PbiCLy8TuxqAPo3ylKGW+uQkfLWIKrLUfN2srNjBzv+EuCERLvUh9qgqxRiSNQfqrgNPb0MM47aT1M2XBXiWMK7RlRZSfAtsT4TmX0nvW7IesSntYu+3BPGWH4HQNj5nfF2x0XkmgoY68HuD6IEF9Mra6uqnNyRb6C6NmJBgw2b6zthiE+1Kn1lLCyyIYLfhNU9Ezx1JnfziXyJ4AoFVzRPaXca4IuFJJS1IxwdysmTyO9ziXrckBofyiNgkRd09NqS6tKrzNt+xrGevcvajgiGd2f3kCflchUXtzWTTuGYmfqw4pmzTuWR/ugC1uz2IKZWTLVTWcNdJ9RsNJVkJpepV7druen9ggZFLpGBT2UHnSUJhi8hVdv1hrcMwMXgVFkOHFsk+9hyvQBb8IxiD6EajfZVvzHhOsZn9Rgp2ZTE8Gf4TpMogEthQQ/B9VXWQirc5uYSHDHwrXB1w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(55016003)(4744005)(38100700002)(38070700005)(52536014)(86362001)(110136005)(8936002)(5660300002)(2906002)(7696005)(8676002)(82960400001)(316002)(71200400001)(76116006)(186003)(122000001)(6506007)(508600001)(64756008)(53546011)(66446008)(66556008)(66476007)(66946007)(9686003)(26005)(33656002)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pCg8ObanZkxGYBXx528t1aEJ/EUWdVJ8ikby90PtkJ1q5KZICOd+H+8zhp/V?= =?us-ascii?Q?GjzIh1SPp9dkh8imED1fVTgtO0GDSXLjtdftLZz7ZWsv3HaGeKwiJg7ZlUtL?= =?us-ascii?Q?j60uzOgbnt3xvAx6EoMc0Zs9jw33y9xYyW8pyPj08G74Z2JGPI1VE1LjW1MW?= =?us-ascii?Q?uJ3KrNnsOCwA0xAKc7Ee7eaPNWWIzRbSJmF70ypIeK/RsiJmSQ4BTfgJ8aNe?= =?us-ascii?Q?uiijjDcegNlYowtx8erBPxgDISNhDlXEFbfl6KY9l4Qms/NJSopmSpdB8ZIm?= =?us-ascii?Q?tf6XsSCILclv9WVkMeshwS7PdVOdL50bm+9v6xxiYRJzlSbqlDlzMao2QJ5R?= =?us-ascii?Q?vjeQu/CNqdNa1nGVmR+pRJqvpOG/81BLZ2LHNu9eRR35Jw85L6ISb3Z+NHME?= =?us-ascii?Q?Cfv08DY+qEjyXau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bxO6lsV8?= =?us-ascii?Q?w6pVIE+P2zs49gHWRFG7Ds/Mbq9kxgylhWF1v4a7NJKm8wWvRZnHfs4M9k4B?= =?us-ascii?Q?eDJk/ejeBKLVQ1WyTVkVq4AtrVTZBL46NalY3poz6iKox5nMhhMLVMGZ3EUr?= =?us-ascii?Q?4OvsBX3Q2mmA3nLJvff6+eLrYSlAvH9RmI8fe8yjT7F9ZTZuqsMrBFGB9W86?= =?us-ascii?Q?EEckhw3jDQHTq2SFM2+RHlSZ1rx4gvm1MXpW50RqQEwkjewZbmYQRLvHRAE9?= =?us-ascii?Q?YK9cQb1/gSp54KoIWu3zw/foimMcs2MyJZOVlOexDZ6jBDThNj1fqmoWQHfr?= =?us-ascii?Q?agw+Vlk6FGV7184mUpw6UBvyBOAODvNvPk/kM2Jl0IivZ4OnBCa0JU9sc6dn?= =?us-ascii?Q?EDshuH7jxSdhaqLUJ/Mg0l4Ae7E+ihd6J3CX+xEOK+kALhna955VTSdBrQdm?= =?us-ascii?Q?SzNS54gWgg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0befa7e3-6ac7-45a7-34d9-08da33560cc6 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 13:56:30.0554 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DNvYKz8/qodKl5FNlMxBRxg2KUyAu6K7IZlkMcIWeiCLM2XF1stmjdUuUqi/yFUM6j+3RaTRd3kn1S69izzxzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3686 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Maxime Coquelin > Sent: Wednesday, May 11, 2022 4:17 AM > To: dev@dpdk.org; Xia, Chenbo ; > david.marchand@redhat.com; i.maximets@ovn.org > Cc: Maxime Coquelin > Subject: [PATCH 1/5] vhost: add per-virtqueue statistics support >=20 > This patch introduces new APIs for the application > to query and reset per-virtqueue statistics. The > patch also introduces generic counters. >=20 > Signed-off-by: Maxime Coquelin > --- > doc/guides/prog_guide/vhost_lib.rst | 24 ++++++ > lib/vhost/rte_vhost.h | 99 ++++++++++++++++++++++++ > lib/vhost/socket.c | 4 +- > lib/vhost/version.map | 4 +- > lib/vhost/vhost.c | 112 +++++++++++++++++++++++++++- > lib/vhost/vhost.h | 18 ++++- > lib/vhost/virtio_net.c | 55 ++++++++++++++ > 7 files changed, 311 insertions(+), 5 deletions(-) >=20 Reviewed-by: Chenbo Xia