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 CE92042B09; Mon, 15 May 2023 03:19:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A196440687; Mon, 15 May 2023 03:19:47 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 45A4540395; Mon, 15 May 2023 03:19:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684113585; x=1715649585; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=3CPKgJOYV4KNfuvEXc3PVfaGlrw7NKAmxDDDt15Z5Uo=; b=XGiWTsErK7ptWO4KxplYxmUKdYFpTnDdNDpt73Ftda+eLuSQWHcNammV 6YIzAy7h8P92DNG90aP1BuxbENcs08UiINtlm4G/5jIwq7E/k1hm/W0Bw HqSZz4yUp/DpJODu6xVjWD8CLPOUKxoaz9S4AVrqYgD1YcQK1qE2oQI+B W70bCcrrtuWprh6mckFh+9+lMzCZWz80lTI8dPUijYPdUzy8Q86l51BaE bItI7cGYOGVRh/nScdvP9zeVcsrr7sa56/CzOSiyvuncx25nwhD6xhxzX m4sqh4wdteOxm2Pn2ds/mro0Rk1OGzp7e/soXkA5JroFvbP5c+MVmEELo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="349927532" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="349927532" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 18:19:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="1030719565" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="1030719565" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga005.fm.intel.com with ESMTP; 14 May 2023 18:19:43 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.23; Sun, 14 May 2023 18:19:43 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Sun, 14 May 2023 18:19:43 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Sun, 14 May 2023 18:19:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JiSxxBBOwc4wQAjEvL9OvF1XVCg9Vrv4gjF3H8dLNXLnghzk19ByzU5Tdj/cFeYqLoz+rfFw5u7QNaj+2OMjQdCxGZ41AxALoUEQ6zEsE51PQKDltUg94uImOYqwqmf2RhdXn8ZvDlgAIK9o+dv8lJcAz5DFxp7Vq2HRs/qMn444BsUr+ck7fQFcCEpN4zrEWpY9gu+N7owlpkL4GwIV1AI5bZWdt8eM78hzrLd+o9SbUx/f0yxJG98Rde0OqXON8Wjlrx6akHogh5TasxIs7s4caAad8QyA0jWHer0PKi21el9zSGZweRCpVfrLlVIrmbGIuiqOXtv6QaG4tUETdg== 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=3CPKgJOYV4KNfuvEXc3PVfaGlrw7NKAmxDDDt15Z5Uo=; b=J3AGazHwMgT/C3OV7nkb5RexzQywrkjUU68i+WGct4c9KgpbgVQkH7JcNRPIsyXPzd4KpaBumo1j3K0wcz39oY6z7w957eLspmZPcJlp4IRjWP5yBa6zWhl0qOoO8nZUxOeCOThNha160PM6XivdXU62TgWyLnWAHWVPGIxiTGEmhaAIr9ui9pG9YWgNPVC+FR0Ze6lKuKWmbIC7d1AJgJe1QG0jVpaVVIc2TS6j84Ug59+u/ld1PIj8R19iwty/vyPAcVHnQCFWIcn6cXAsQ+S2z/vKp5ViDoXY9HPQwOyqVJ9UF4VFrBCR8uuOFLPYssqseaYBxVE/bPpQ/pYRiQ== 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 DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by PH7PR11MB5959.namprd11.prod.outlook.com (2603:10b6:510:1e2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.29; Mon, 15 May 2023 01:19:40 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::e570:d9a7:df1b:1589%6]) with mapi id 15.20.6387.030; Mon, 15 May 2023 01:19:40 +0000 From: "Zhang, Qi Z" To: "Ye, MingjinX" , "dev@dpdk.org" CC: "Yang, Qiming" , "stable@dpdk.org" , "Zhou, YidingX" Subject: RE: [PATCH] net/ice: fix statistics Thread-Topic: [PATCH] net/ice: fix statistics Thread-Index: AQHZg66+Q6d0Co3pWkCbc7H7oucfNq9ajydg Date: Mon, 15 May 2023 01:19:40 +0000 Message-ID: References: <20230511021055.328986-1-mingjinx.ye@intel.com> In-Reply-To: <20230511021055.328986-1-mingjinx.ye@intel.com> Accept-Language: en-US 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-traffictypediagnostic: DM4PR11MB5994:EE_|PH7PR11MB5959:EE_ x-ms-office365-filtering-correlation-id: 90453ce3-3454-4858-e0d9-08db54e2750a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iVUmQ2p0RFKZiRbY6SeESAhSylhRXgFs2lB218TITOFyh0VazrmMUuBFlZEtQONZ3Rf/w5dk2RWE4lRdgPax6HvzUUpvRbTocd4Ny8gOxGfiWAsEGuNjR7jpzg6IIusfNakcMgnmx0HzmC8fuITGrYp+S6aXPgxh/li9YMdNeTughGPb9192qslG9Yu6KjrGlOnmIeUPZDvVUTmuAxagTYUnYewngwZftdd1halqM9knCTS/oVSxLEKK0cwFxMyHs0vGwZmrnRE5bdOkL2bB1NfabPeHhMHEv0rymcneTbT5BzNv66IipXqnnC5ViUQvBlDp5LZjGFaksatC7v6YZsBJjwEM5Y4SR8jk5fptRmvwnYo5zLU9+7qCfdaHtTCWRo+hVparaLMLdfbJ5XjUk0bYuS4GmqIljNeffdhhLJO0oZNhDMNUVb6YnQ9HLHzyVjUNt09o9xoq5uTFD+m8AyhTYfBwDg2sMUV9Yme/cQjdFB/JwRftNhXJxVG/u++m/pY7NsKu3hiEOZHGzUNqFa/6KfWpa4GE7qUAb9EE0y5Tb/f3KvkG4jJnENZ7QpbaFVGfdG+IIC4iCThFusKglm9EbV/bNfcq8cObM2AA+GelMoQ5VU8o9YvPWnO2RF7v x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(376002)(366004)(346002)(136003)(39860400002)(451199021)(33656002)(86362001)(450100002)(110136005)(54906003)(316002)(76116006)(66556008)(66446008)(64756008)(66946007)(66476007)(4326008)(478600001)(7696005)(71200400001)(55016003)(4744005)(8936002)(8676002)(5660300002)(52536014)(41300700001)(2906002)(38070700005)(38100700002)(82960400001)(122000001)(26005)(107886003)(186003)(53546011)(9686003)(6506007)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eAEE6XlouP3FxsCNpsovEFpqren16Dt06cqQjc+7oyGiAYusYj6nBxuygml4?= =?us-ascii?Q?XReX44cXS6wTuHQwy5wsFYUsLDXrlna8+LV/0Osdrug9ve29+J7rTYy1794j?= =?us-ascii?Q?qIwfhrKe9SwckvGrMR3pjoaN0LMuWM73tSBHyzy3vNKBLcGLcUnAEDpGO4kA?= =?us-ascii?Q?9TGr4b7n/nIxu8tpVZZdx/Kf5+BTtW40s5o+44NZAK0CLZp8MflH+rxGGDMt?= =?us-ascii?Q?KtB+iAo53yY8VrkEXwXkCVbCvgyplqAFJdTPA0K483dqzowXId/lC+9pBuMl?= =?us-ascii?Q?ANkXb8QzRIm1ZYi2qnCdNKsMgZh5GBtdM90k0lyf4PFim9u74vTWcNhaiKcW?= =?us-ascii?Q?fU97b8+76qSjt+vZJCzsg3Fuk46rs2JRBkoRTBnyp9+BIXodD7l8QCvIICVn?= =?us-ascii?Q?yl+YW9jEwLhAdtpZC8vi1FE3yBRjC+kIEHXNwJ+yhtTegJ7vn6ujaaJCSyoS?= =?us-ascii?Q?QgK+RrWO2PEiwkdxG2oEKObl8J2rNKH7+WG28ub8mBmGozqbOOqeg3RbSRs9?= =?us-ascii?Q?v+qyuO/er68K59o1O979PoLGNDmfN9Ypz4B1lnNAXtH5/xB6xsoMwRvd1bb+?= =?us-ascii?Q?ypo9nHfci7ThWbZshnOvCv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ascii?Q?kg8ShdvMBOGCSaPjjMcMYz27hMIan79VGdjNfgrsRf8OWIFsI6ljEmhhNPIi?= =?us-ascii?Q?x1dALIgL+iBG4SU9/Mn7ycRUf0+y0hV+WLqkfjbh?= 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: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90453ce3-3454-4858-e0d9-08db54e2750a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2023 01:19:40.5733 (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: nhH6qhkZM3o3b7+Uf7t810wRYb1Ss7090tCnhY89SIb059q0tQAaxV2OWISVgEH4ayRrCDXwbkM1g6ZpSMAcog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5959 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: Ye, MingjinX > Sent: Thursday, May 11, 2023 10:11 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; stable@dpdk.org; Zhou, YidingX > ; Ye, MingjinX ; Zhang, Qi > Z > Subject: [PATCH] net/ice: fix statistics >=20 > When the stats_get api is called for the first time in pmd, the offset of= the > stats register is not recorded. That results in all the obtained count va= lues > being 0. >=20 > This patch adds reset statistics before dev_init returning. That avoids s= ome > noise being counted. >=20 > Fixes: 12443386a0b0 ("net/ice: support flex Rx descriptor RxDID22") > Cc: stable@dpdk.org >=20 > Signed-off-by: Mingjin Ye Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi