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 C9FF0A0553; Sun, 29 May 2022 15:34:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7143D40A82; Sun, 29 May 2022 15:34:10 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2040.outbound.protection.outlook.com [40.107.223.40]) by mails.dpdk.org (Postfix) with ESMTP id 6DF8140041 for ; Sun, 29 May 2022 15:34:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWr32BIFCTuk8/5ovBJ29LJVwBMwry+Yhhe7nNtzKQbZ0zCK+KF3+9ZGIFC7p0eHxmzalIuju5U5t6KwUxyjrUrTqTP8ieY/U5Nd0u/cg/byC+SJsWw9SwBQtX9my+Kl3pNxnlt8BWHlDbvjt38dRdEaeE6q8SgcNDa+CUNi/G5EcvwMAMQDWdxe0d0VHiOA8NpiJ9PLlLcEwtZHiN9R0u47OVB75Xt21XCqQyH/gav8an9pdsZHxjGMKZT49IpNLPYdi65RskSdc/Bo851bsERGIJGeMPWmjIFYoXQmtAOUJGQgTWwHfoWumL4zR9zUOES9usA8A1286zq6tInHCw== 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=rJuOWBa9JYePvQfh98I/0fOpjZJD6NFZA8ry18JkO0k=; b=Fsf+Vz231gJj1PVwH4rED8XnpauV5M1bqs+nfrqVtyRQ9ISSxXufNj5XhDnPJBptUIY6spmuII6N8jgcJpg3CA6vaoRo/E7MXk3rmoDZ52PQatE4HsahjKr6+GJ6zEfAKjydHSKnShpYkJfpUfIcYB/99dfvoFo7Era2FkdlzLKHhP2eYCO7iT+TUCpxejMK6j/J5IOyBv7DWHSmUZhvSM1kEekCYZqvlAt1V2lwkjTe6iYtLsa0AGEv8fszCnkKJ0mBggEyx42P74GChdksSmiSSP5n2H5XX8fYUtMhKFZAOlmyhpzykBP5p4VznU1MxN6NWF4H10AhiZ5Hw5QpOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rJuOWBa9JYePvQfh98I/0fOpjZJD6NFZA8ry18JkO0k=; b=a7lEnwjLk1W0JXRyGZGgxSaQQ8xRE64s9e0NbeFan/ocnbp0df80PfVjd2gNNtalNq05NgT/rQtbkvX+vpCGI03shlyTUCpGxlZEbKVg3ZnbQ8Bz72iv36NTDEk0eSxWeU6CistWtr7NPrym5Ffju/TEbmPniGQPGwLf6rRFKpcJ/x+PGcS7Hh1ofo046KiCHKxTu6f7xqL6MsVkL7UYohs8LZlcS3rXZyXc+1v0F4zY/wrO2bwr1S1CtucDI4OalEZb8phoLmZOat8TS1dbDnMm/h1UwE/I0GPVAGnnsOK/2oOQA+svQD2YQct4fwsYTj9BEYejidAldzwX0FNXhg== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by BN8PR12MB3458.namprd12.prod.outlook.com (2603:10b6:408:44::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Sun, 29 May 2022 13:34:00 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::bd2a:f22f:f435:7b36]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::bd2a:f22f:f435:7b36%5]) with mapi id 15.20.5293.019; Sun, 29 May 2022 13:34:00 +0000 From: Raslan Darawsheh To: Rongwei Liu , Matan Azrad , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: "dev@dpdk.org" Subject: RE: [PATCH v1] net/mlx5: add Rx drop counters to xstats Thread-Topic: [PATCH v1] net/mlx5: add Rx drop counters to xstats Thread-Index: AQHYcKtLvb4yU14OKkaEEem1nHVU4K014BEA Date: Sun, 29 May 2022 13:34:00 +0000 Message-ID: References: <20220526024941.1296966-1-rongweil@nvidia.com> In-Reply-To: <20220526024941.1296966-1-rongweil@nvidia.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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2bf6dbfa-85cd-4359-5aba-08da4177e3a8 x-ms-traffictypediagnostic: BN8PR12MB3458:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: gdHyv3Ho3tPA8YJ8T7De3mUP/7A5kEwdg1b/fOb/SA72G3g/qc8hKZB+eucmNNTAoOjT/iqM/yHeuR1oqpeVlw+XZ8XaqvcvgJQ9U1/+PBft95cI/Doqvgpj8qJRqbkWyNpdUocJNl+oFejGyBlbPeWSSB51Lvk72oe/HUimUHr3NoqR1fLvREI181mhiMcPPzNARA3pz3g1BXcFtr/uFyhWf2Xlzkit7eceqlxWQiF3NC/3z67Dk721KvRo6jdI2XSYHjrHP7ikKbM1HAfjduUWcuBP8Jui+YP4SVGf3m3LlepmmDnB/x0Zt9nkJJCcE8T/1iU5DUF96F6jJff2vgpjeoqEK+ziMUTZ5ZyTV0BssVMPWNFvmLc1X9z0wuLLNENJwb+/Dxt+jsxETnc4zdbgnQFbio9yc32Si6AgBaa4iaxvS8ZFMSlMDKeueYLVTr2jihjaNxt6M82nla97JPc8wCZbyKbULTrSOaaTDdmaj5O6+JsD13NY/fNJk/VZy/wPel2BvA7x6Gp2VqPpR3KNC6L1LTU5tCOPQ4KIJE5A/xrwds1FW4lMycARCVNNQQco5We8bVK9Yj9gXuHZesKLd44v8xOzyb8sM3hTZmG3hXbAJh51A/sDGgRjdvXj2fmlfF20Z1uam8AK6Cxrquzth3SOPbAnCPsNIOlcbxSac24faXN6zzahyGSlc0wx136eXoJ7PYpqxE8eSPmpFg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(316002)(6506007)(110136005)(55016003)(64756008)(66556008)(66476007)(66446008)(83380400001)(8676002)(66946007)(76116006)(71200400001)(4326008)(4744005)(53546011)(508600001)(186003)(52536014)(86362001)(38100700002)(8936002)(9686003)(5660300002)(26005)(38070700005)(2906002)(33656002)(122000001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dp//kFD4C/zy8iyrzkzbxKK6OQEztKaDQDIFtlCckRtMUssm1qDyQrI79MZs?= =?us-ascii?Q?H0+CuQ1CJAGsd4PG8kN058PZdgVY2DghY/+ANYUuMUC2wC/WvZs4vnW2uLks?= =?us-ascii?Q?BSwQ+LHpJ0e4UCh1bJFgCc5DlEcBX1tMXCTGW902dOhTmqf9uZaO23FKpd+E?= =?us-ascii?Q?+wukHWFDoAROgkHPVqdsFCexfSQ6n0pwYApySYDhlQyh1J4wlilQ7k2i8fSf?= =?us-ascii?Q?bp4zY8h8CuSfQsS6s5K9Cf29AUqCUGYI0s7V+ZkqUjy+213N55CzyhrwZyX3?= =?us-asc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gdwFQeFyDWuE1XEP5tX5Na3apKDm?= =?us-ascii?Q?HcGLJT0F4/IxfDietz6dEyx1YGlE8qSSS199U94NnKgvkhA4/s+iX3CyODt2?= =?us-ascii?Q?8nBw2OGSfKPtKhazoXarpo4NdkBe8e8vgKRC62HJzzVZVtHXaBnDFxgj4daH?= =?us-ascii?Q?T6vL/6f8FIluc8mjIzHgnPJ1rt8il1keAkCT0Xhfu8TXQoTgCKEeGWVeB0J+?= =?us-ascii?Q?mH/E07j5zCQ60iokPTv6KAEVuNVHh0fTphLiNy42SoovcDQqGV49rcO56zB2?= =?us-ascii?Q?L/lzWAMXI17GZQk36FWbXanjDJknkH2uBhZD/TR7+tjn+eOn5OTfwG1h/caU?= =?us-ascii?Q?WdsHVtxR7s5fBJcU7ayGZubsTeTf9HXiE5+5wNst23DO8lBE4GjpIUrXgRxf?= =?us-ascii?Q?2riun0hu4YIE8jTe/SibPuDTnzhpLlu7lBuRhLy97LKLA4j6E1BqIAic/nV4?= =?us-ascii?Q?7rp/nPvwYAa1Rt9VQRBi8htPJH3iPuUa61oBykTW/6UyTd0SYngSpBWfWj4L?= =?us-ascii?Q?To5uDlgAho63yCc0v/Fve7XNH2UqOrYhMH5VQL5RPCvlG5f5b131oFC3x6zf?= =?us-ascii?Q?tCWPuV9Xcg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bf6dbfa-85cd-4359-5aba-08da4177e3a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2022 13:34:00.2096 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SA8IS1VTlzd5dh0LPXrN5CN7ul1WAgfootscSP2uUZeAhvZ5xnbW07AAfDjEIP7ttr4flcG+AdfAzqKrM1icJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3458 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 Hi, > -----Original Message----- > From: Rongwei Liu > Sent: Thursday, May 26, 2022 5:50 AM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v1] net/mlx5: add Rx drop counters to xstats >=20 > Add two kinds of Rx drop counters to DPDK xstats which are physical port > scope. >=20 > 1. rx_prio[0-7]_buf_discard > The number of unicast packets dropped due to lack of shared > buffer resources. > 2. rx_prio[0-7]_cong_discard > The number of packets that is dropped by the Weighted Random > Early Detection (WRED) function. >=20 > Prio[0-7] is determined by VLAN PCP value which is 0 by default. > Both counters are retrieved from kernel ethtool API which calls PRM > command finally. >=20 > Signed-off-by: Rongwei Liu > Acked-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh