From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF231A04B1; Tue, 24 Nov 2020 04:34:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 81D06C914; Tue, 24 Nov 2020 04:34:17 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0C6B6C912; Tue, 24 Nov 2020 04:34:14 +0100 (CET) IronPort-SDR: AJdHNBjJJjc2f5j5aBmvtkCyH7rX1Bn/4QMJR5FanyIXudKSVd4ZiGIVDKOQhk5qNZDt56YCxq 2WjnoJiVhDZw== X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="256594766" X-IronPort-AV: E=Sophos;i="5.78,364,1599548400"; d="scan'208,217";a="256594766" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 19:34:10 -0800 IronPort-SDR: EQIK0xY2MDHSevfwFf2+q0zB7gc2hagFvt94XEF2rldAt4bhbzqyE0JyOadfNb8YfOWusn0Y2M zCBIi4c1vRrQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,364,1599548400"; d="scan'208,217";a="478358756" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga004.jf.intel.com with ESMTP; 23 Nov 2020 19:34:09 -0800 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 23 Nov 2020 19:34:08 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 24 Nov 2020 11:34:06 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Tue, 24 Nov 2020 11:34:06 +0800 From: "Guo, Jia" To: Igor Ryzhov , dev CC: dpdk stable , "Xing, Beilei" , Thomas Monjalon Thread-Topic: [PATCH] net/i40e: fix counters Thread-Index: AQHWvqGmR3RtL5bOy0C8Tayn38MwjqnWp2Og Date: Tue, 24 Nov 2020 03:34:06 +0000 Message-ID: <2ada7ab1daa242ae8e256b8432141d32@intel.com> References: <20201117085639.40307-1-iryzhov@nfware.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix counters X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" aGksIGlnb3Igcnl6aG92IGFuZCBUaG9tYXMNCg0KU2luY2UgdGhpcyByZW1haW4gaXNzdWUgaXMg cmVwb3J0IHJlY2VudGx5IGFuZCB3ZSBuZWVkIHRvIHJlcHJvZHVjZSB0aGUgaXNzdWUgYW5kIGV2 YWx1YXRlIHRoZSBwYXRjaCBhbmQgZ3VhcmFudHkgbm8gc2lkZSBhZmZlY3QgZm9yIG90aGVyIGNh c2UsDQpzbyBJIGFtIG5vdCBzdXJlIGV2ZW4gSSBkb24ndCB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