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 9ED834595D; Wed, 11 Sep 2024 09:25:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 722D1402DE; Wed, 11 Sep 2024 09:25:13 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2072.outbound.protection.outlook.com [40.107.94.72]) by mails.dpdk.org (Postfix) with ESMTP id 9AAB6402D1 for ; Wed, 11 Sep 2024 09:25:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dRT5dPLIzROtUPAAE0cfBsB6Vo1TwKumf8v9pczKgd4VL27Y2mMParytyCBABuWqLj4n1nf0kvZx1xxFT9QF52xnEQMXlT19kIG4zNyLMdETs3BIs6yJ7CmzgeGe+cdxgBhaMPtzRPLBzsp4P682BOY4TcD+VlR1P6vUceRg1fNp3h9eua4TXqs6cIdKl+igvPXR2Y4ajdI4rUQeAPzYXJLXituKypFDplEZMNuqFpt8Z8VKpJeN1z9jsbO/w7DzrJUyBD0hajp0FLwto5yzlh5lZPrHiXS2a4/svmxwbgjaaYNOz5NT+0rtqXw+vfSQllyOnQzr8vQ1PGGY6wJ+7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zeak4yh9dQKaB+Px94P1FzTwzE0At56VScwXuYSJ6pg=; b=mIaG9UTFxuXVwLSRtOsmYwBd2ERo3LEVQXW/XthWXTdH74EWsgLRb5wm85+ndHewMrbfQRaPjv4XUpWQLYc2U/EA/KpRhguh4D+JthHQwE014ckaspV/lOdijnLZSVExDEBNoXPKyIzkKuriJIOFvFwh/KJ7B3mITyOLm305mrAgcRCbeh1dBTCrXD5J3Gk90XmrGZXQ3lT32TLIrXOkE5wjtacvm3Q+FA3EoQtx0qafluI/XKxMg3ZkMy28aTtZIlxwaAZrdnsoDqgDiYDFrBXWvbGdyFn9Gt3758EkABlGWrkaCqI1VncIf1DNHMtMt4sdBvowtLMyqYSlijXerw== 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=zeak4yh9dQKaB+Px94P1FzTwzE0At56VScwXuYSJ6pg=; b=qkPXMHPeoEAfpcDPNSKqYNEwr8SpGUB0A9Jynz7sN4LDRrikrFjKaPmfy6kbjfj65rxcn6HkhTlQG5O9+UVlk1w9Ie0jccPhSW+SOSbSvMasoUJpd/Xc5/hT9SQ1krpxgmRoeiSYvFihgi5M/vTW++Mnuljx7ox9s5+ZrSGpLcz+j5mgiQFgmmQ5Yfevs659F8DXoiuXIhRedrebnjCtazFa/4Hg81PWbLfnkZBYjQuZqYKAHw0Cs1A5QKQ9vLL5N1IAso/VfcJt38DDXumEjH45GzAsNTWxff6vm69mvLiFmwii7Q4Ue5IDso77Zo/LRkrVxnLcKZ0wfafLElqptg== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by SA1PR12MB8741.namprd12.prod.outlook.com (2603:10b6:806:378::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25; Wed, 11 Sep 2024 07:25:08 +0000 Received: from CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5]) by CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5%6]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 07:25:08 +0000 From: Dariusz Sosnowski To: Shani Peretz , "dev@dpdk.org" CC: Maayan Kashani , Raslan Darawsheh , Slava Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad , Anatoly Burakov Subject: RE: [PATCH] net/mlx5: add hairpin counter per queue Thread-Topic: [PATCH] net/mlx5: add hairpin counter per queue Thread-Index: AQHbA1TVKhcgAdNWxkeBqxUigCiceLJSMJhA Date: Wed, 11 Sep 2024 07:25:08 +0000 Message-ID: References: <20240910074051.5691-1-shperetz@nvidia.com> In-Reply-To: <20240910074051.5691-1-shperetz@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-traffictypediagnostic: CH3PR12MB8460:EE_|SA1PR12MB8741:EE_ x-ms-office365-filtering-correlation-id: 4283abf3-c36d-4fdd-2650-08dcd232dd3b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?jgUY+UXR2s7TpW+gmRRkvI4qz7ILDsZ4Ub1RuH/ePyaLw7x9UEg2YHt/wu9G?= =?us-ascii?Q?qWBdR7GtN4PrVLNdh7+yGDywLcRVZ6zafvyXBmS8YxIERf2tSMdLy+q7L0qh?= =?us-ascii?Q?iC4ajsh5CwZ2LDKQ3VXEf2RaGoxbLJ8K6/7dHgZ38fQJCIB78k6GCHFjhFV5?= =?us-ascii?Q?zrewAJLu2YXwzf8auNeSZx61DSatpyn5hgzFYoOHIqa8KdXFm7ykEpGNvQDl?= =?us-ascii?Q?IXYFE+JzuJPuFeQxGtBYOkIRU+hWbRLczA6s5qhhokwlHIIWJPQnd3qxRL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yzbn70c7C8Fz9BOS9LWKu4b4P27u?= =?us-ascii?Q?77kUOPsvhAgiTzDP7/lksLAwIZQzlrgs3b/euF3JDCt0kK5EPB9/tcpq4Ad6?= =?us-ascii?Q?nev7l3z5oL2EkqnoW4JPv1RGeUdpKUmDIW/yj1iraulK3J/mynl3j7pyQVf9?= =?us-ascii?Q?Elu6Cm717D15QQBCQAPfOs8Ffd/mc50SwFNwH1QUkzqfjWzgPc1alldhDnWX?= =?us-ascii?Q?uoE/1mWH6gvxYx4PbEdWmz1/EIBEvuOfuaX3sek1rQQJOwdgug=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8460.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HDtG4TemY6nz8lJjCUbiC1CRisq8kjE3QCL1LfzmYwR2RJq+Cs7HkuIXmGz4?= =?us-ascii?Q?1gi7oMN6DTzsclXMT+JroH1vnNLEHqb961VIuSDIVavYYm38iYfBm8jfcjN0?= =?us-ascii?Q?B0byy2d624YRmb+zxFKMm3wJhrthc9ielQR6UL9AOfUasOFr2pRtlGLmHFKI?= =?us-ascii?Q?dSUE1rcK+xqxZOP8LQLgIufpATAdO4VanHUH8mfs5N/W994HN+R46Tz2ajoo?= =?us-ascii?Q?FaT2S58zNAmz7lgwkDxpflFvcg0EbVfv+vxWrb5MpR1c13tQ3SiKmMHgzLRJ?= =?us-ascii?Q?meRb7hKt8+aD8BcItXAEeOaGLWk0Qs8ayHGQsnd5hSzstaIDqXpwnaWTFfpQ?= =?us-ascii?Q?4M98EAYq0DDgrkDv9bXVDbLVmVaym8Ucr7VQkLPhkknOP3c2AFBSU+PjlP/N?= =?us-ascii?Q?rd5J3QPsGk5EyEhivSWYPIohD21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?UvMnlNFu4TqUL/scwMg0zpMbYhRlZKL1xqJjRldMQ9KSlRLcCrNZcmH4+QIb?= =?us-ascii?Q?STgp2EQytdZ83qOIMGVaWP9NA9XRNUMxghQiw9lNiraT/9Kz6DTiNS6c+WpO?= =?us-ascii?Q?b7bYWzL2sFe3F7en3szJlqc0kc102e2tyDQUWlD452qu6PLf78F5+JDaT5Vg?= =?us-ascii?Q?Nnnm4ezrErCezyBUt4cDQ3lP/dF4KFgX7PnxlWaV37eytmBUYPN5BBDX7iej?= =?us-ascii?Q?jNFwJGuLASaO82APwk42pYbmotY5huooKrXeWuEz?= 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: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4283abf3-c36d-4fdd-2650-08dcd232dd3b X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2024 07:25:08.1419 (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: QIhEMyi1Sp00z25xHq0prYa+B7e3zaFuFQ3VgJ3MeM6+nNMB9xYXAutwNb+0851EmXOYqUjSfPXb+MFG7mZJ9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8741 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: Shani Peretz > Sent: Tuesday, September 10, 2024 09:41 > To: dev@dpdk.org > Cc: Shani Peretz ; Maayan Kashani > ; Raslan Darawsheh ; Dariusz > Sosnowski ; Slava Ovsiienko > ; Bing Zhao ; Ori Kam > ; Suanming Mou ; Matan > Azrad ; Anatoly Burakov > Subject: [PATCH] net/mlx5: add hairpin counter per queue >=20 > Currently mlx5 PMD exposes hairpin_out_of_buffer counter that specificall= y > tracks packets dropped when hairpin Rx queue is full. >=20 > This patch allows the user to choose whether they want to track packet dr= ops > at a per-port level or a per-queue level. >=20 > If the user chooses to have a counter per queue, HW objects will be creat= ed for > each individual queue, and each Rx queue will be assigned to its specific > counter. >=20 > However, if the user has more hairpin Rx queues than available hardware > counters, we will attach the first hairpin queues to the available counte= rs, and > the remaining queues will not have their packet drops tracked by these > counters. >=20 > This approach provides flexibility for users to monitor packet drops at e= ither a > port-level or a queue-level granularity. >=20 > Signed-off-by: Shani Peretz Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski