Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2523570lqo; Tue, 14 May 2024 00:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQP8ojopD+44mvWDA/T4ibv4voS0qGzUsvdwKk9QJOFarAo8QwnhHBS3grg5N+Ug3ds18fC/DT/4jjtKmPw9zjOgL4Ej3jWA870LFccQ== X-Google-Smtp-Source: AGHT+IHoKRdURtuP01kZPsR6j6va5+aBxgu9mvwjtA20W1B5eBpyTpQQ7bVS2BZacJc25HPnTiel X-Received: by 2002:ac2:48ad:0:b0:51f:3fea:cbce with SMTP id 2adb3069b0e04-5220fe79fc7mr8428468e87.51.1715673276179; Tue, 14 May 2024 00:54:36 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36e329si6185964a12.550.2024.05.14.00.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 00:54:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=selector1 header.b=QZFeTVE9; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-178419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AC48C1F228E4 for ; Tue, 14 May 2024 07:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9559017BDC; Tue, 14 May 2024 07:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b="QZFeTVE9" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0323A13ACC; Tue, 14 May 2024 07:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=67.231.156.173 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715673263; cv=fail; b=IZYbPclP+ix6HazXonjKYxs8cPNXRCwdpo/ZShggmgEzd2+w3roBkICnH/om3UE3wm6okAMYYT/m5ZhYOfE+lvSInv4RTEPyPtUKsaKEpBh2ZfLA/nuPlTjwMFCgm8nYhxyKPAClvjP+mknTpzGKlFXv18zCDI1dC4+Rme99mNo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715673263; c=relaxed/simple; bh=ycEgVTSwceQWkhrIyJlpNOp9FCrLkRDlrv/w98lQq6A=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Mbvlqn/6GPbkmRfs6eymSc/ddU85xX7FjCHswpZLiI1ALhPcePI3SBxTpZL0lQV8xaYHuNIZKtWOQgb8E9+YYxoAQbdSmaJNHNneAkjmdb1ZiZzVQLdHKx1LbNT0LBdMjwmoJWsNVx6W82LrOlqeXoI/NQDNr09vmtDk8YRdPiA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b=QZFeTVE9; arc=fail smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44DM9rJP013251; Tue, 14 May 2024 00:54:13 -0700 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3y3udn99ya-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 00:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h9oQI1HOtu6w1pCDEWjT4P1/eJT15bgSWDQIvWVRGQByn9cLcTH8srbIzKGh+ovIes6lkqVvOBEa4BkQ0UMwUE6/6mniV8GGpSXtNwGmkKQPfgAQ10Yl9e7kRbzP1f4jGSVZgNA1k/vLDzrCoWsgfUcNkf8n8KpTg1ZSyJfO2h83/Vfoyli1pFnF1ub2hOdVN4h1nuMaJsEQ4PRuFGHwJP+bOe68kmfBpMXpBCA9463nKo3BatWwIuX2l2g5vE2Hrx2M0MssHAfTUmz4vp9oM6Qcn9ASrFnOsUYQvvYygIoNs+yHP9XUkORHVU0tvzt6ysLqkYJYiVnVYc+Rgezp4A== 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=QFKZxC9d0+AYDpMUTxo4gF1fGq+hTb2vLD2pZSo/ckA=; b=AMuoNHTAGdhFGjNtmDiW/8bVIJXFYWCiKI519Ks5NaA87/S3ecOSBI8zArzYO+/uwFXJ8w3j4UCTRCuoz3KhPuqy3kH1WBNL1bWqjiLbBOModWaTUSCsmpfAGSOGZQTPdvsiBXSlB2JxPpa1Dq1mbcrvmxlJiLTFcvbDGNy6kwzzlsvVml/8CRfzLOm4aQnI3hjYgLR0MQgnvNXp6WKqToQX5/Ta/x/NRghUPVJZggjL55Vbm+2H4S7xhsgSO824yPnJG8QqdG+sp9xfchWIFHLK2TgVcCpemNvYOd/DUjg3tZ81/+3kJCQBU7Ay/pPaQ0BhCc+jIJfe4itr3/QEKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFKZxC9d0+AYDpMUTxo4gF1fGq+hTb2vLD2pZSo/ckA=; b=QZFeTVE9pzi7v8aWvhxfPulO9bssqwtLtVfECAFZToNURXG2srSLm0Xq4CPmMY1V3M9ck6TcXbw6zrnK6e+lP1gKasqGFCc94EAIjl72Mqzj3046IGNQ6MElbjQB2kHQVVon0S3GptAtLG/ZxAjeCYYcdhM0Gy8MCLI+YO3Llvs= Received: from PH0PR18MB4474.namprd18.prod.outlook.com (2603:10b6:510:ea::22) by SA1PR18MB4646.namprd18.prod.outlook.com (2603:10b6:806:1d5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Tue, 14 May 2024 07:54:10 +0000 Received: from PH0PR18MB4474.namprd18.prod.outlook.com ([fe80::eeed:4f:2561:f916]) by PH0PR18MB4474.namprd18.prod.outlook.com ([fe80::eeed:4f:2561:f916%5]) with mapi id 15.20.7452.049; Tue, 14 May 2024 07:54:10 +0000 From: Hariprasad Kelam To: Jakub Kicinski CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , Sunil Kovvuri Goutham , Geethasowjanya Akula , Jerin Jacob , Linu Cherian , Subbaraya Sundeep Bhatta , Naveen Mamindlapalli , "edumazet@google.com" , "pabeni@redhat.com" Subject: Re: [PATCH] octeontx2-pf: devlink params support to set TL1 round robin priority Thread-Topic: [PATCH] octeontx2-pf: devlink params support to set TL1 round robin priority Thread-Index: AQHapdPn4dklFnNCykOp5VltXQLq0Q== Date: Tue, 14 May 2024 07:54:10 +0000 Message-ID: References: <20240513053546.4067-1-hkelam@marvell.com> <20240513161817.048123bf@kernel.org> In-Reply-To: <20240513161817.048123bf@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4474:EE_|SA1PR18MB4646:EE_ x-ms-office365-filtering-correlation-id: a12b631e-c04d-4fe9-fc2e-08dc73eb09ea x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|1800799015|366007|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?KJGRuevarRR38nvNHU9k1ba4Kd55RC4XkKBQsR/rJT/98rMaugFUqiMDrlw6?= =?us-ascii?Q?tjA58jGg6jwV/lzlect5t5cFKc7egfosv26rOFYUvXA63DGKIGTnui4zsxYD?= =?us-ascii?Q?O97DGLzIzekQJNSL4D0AhEOaQA507h1gwdy5wJ9etP0LC4UbmY1hzooI8W76?= =?us-ascii?Q?jOM5Su4UOsJp3l4mKnKJ9JLuUeBqfRbcWz2bzSAGGfTCyVXZohkITa0UNBoa?= =?us-ascii?Q?LZg3jbBfI42hYFPw2OI8ls2Pr3g8j07SX4KKOKOM3f1udLlWYvEf1mAleDue?= =?us-ascii?Q?A8/P86EUzYsnIn4Ei8A7546iHEbHY2ddaf1ClPc2yzbKGq/E2BZeSR5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utF1vWtiX3KoIYUgP51dnW?= =?us-ascii?Q?3uTHx9V8L/2fC60VF9rXNPKrIcGUbD8d/dHJstCgTkM4if7+y0ySVFbBSBZd?= =?us-ascii?Q?62sb1kCIxX0cMJX5Y6fhlsewKjBeXFry7Fb+yWvfI0fMPw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR18MB4474.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Q1gfEHs6bZ3iNzIYzjrDFmylGAQGD/UAjv/P5yBzrVOHq7iiCj1Tkh6eaOPy?= =?us-ascii?Q?OuhXkbkBpaAcuVJqKLhv2cswdoZ2//90bcE7I5abdoWjZpcasBIqysct1dWv?= =?us-ascii?Q?r7smOLOA1hw32z/ieYb32a4AiFy3Zn1ZDjFieqnq+qLxGBxrM/eSBEdO7/lZ?= =?us-ascii?Q?GXC0oWgQPGTEOJBB86UDbNuzfXeNvNp2hlYLK1BdSXDtSXcxaVTm7gsqLil0?= =?us-ascii?Q?5uSS3YQeSnxxCBl3QDBTLUUjuouEOY7QPVTHWxmIoBfdOgYOifMBVG3f/5xV?= =?us-ascii?Q?2HiOaMyILi5UfMIToYvJthgRbELVUsKaHbUfO8dT6B5Ai3cD1adXJUASWKzE?= =?us-ascii?Q?X8suxdA8SzjkQ4fegAu4A0ArBAuFbeUEi1CtwG0oX0BsBM9VzUpUXBagx2g+?= =?us-ascii?Q?gZzqiOcb8Vj3pEC8N5MZPHFO8YV703O8NPY32otyP6K4n9XW2NqtkSaJUEOH?= =?us-ascii?Q?wtvoJ6chTppCSxGuToUx/XSXVovCe5fw5ghBNDLz+OhHH34YK2Mv8Lz8/NAv?= =?us-ascii?Q?XCb3xgzQ0DsnrLJFhNKd7Bx/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9Gq/hFTMew64g?= =?us-ascii?Q?BiT5YhZzPP0VszlqgxGUzRk/dpSajW8PNFwTgqLOrczUwpiH7A+1MknSrpL8?= =?us-ascii?Q?hDR621Lvcx4oYcmvnyzZN1Poqo3+0ZO8a/Z1icI00VK0b4evkb62bC4pd4iU?= =?us-ascii?Q?fGOYkQJdtqBgLXFMm65hENuqLOj8NzmV0O8qMM2f?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4474.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a12b631e-c04d-4fe9-fc2e-08dc73eb09ea X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2024 07:54:10.0267 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5YFqOELl7WvmvumGYYvvWDVZIflQtQjvcBsvKo4Ish61PLdc3zJuMaYO+NIhFLc6n5yYQnIYpKhkoE/yQUIuBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR18MB4646 X-Proofpoint-ORIG-GUID: H-I5C1P5wtGVdXGPoWLUA-JfLhZ8k4QQ X-Proofpoint-GUID: H-I5C1P5wtGVdXGPoWLUA-JfLhZ8k4QQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-14_03,2024-05-10_02,2023-05-22_02 > On Mon, 13 May 2024 11:05:46 +0530 Hariprasad Kelam wrote: > > Added support for setting or modifying transmit level (tl1) round > > robin priority at runtime via devlink params. > > > > Octeontx2 and CN10K silicon's support five transmit levels (TL5 to TL1)= . > > On each transmit level Hardware supports DWRR and strict priority, > > depend on the configuration the hardware will choose the appropriate > > method to select packets for the next level in the transmission process= . >=20 > Configuring DWRR parameters seems in no way HW specific. > Please work on extending one of the Tx scheduling APIs to express this. > The driver offers per-interface DWRR params configuration with HTB offloa= d. Below are example commands having different classid with same priority va= lue tc class add dev ethx parent 1: classid 1:1 htb rate 10Gbit prio 1 quantum = 2048 tc class add dev ethx parent 1: classid 1:2 htb rate 10Gbit prio 1 quantum = 3048 Due to a hardware limitation, only a single DWRR group is supported on a tr= ansmit level. To address this for physical functions (PFs) sharing a transmit level with = their virtual functions (VFs), a devlink option implemented to configure a priority value. Thanks, Hariprasad k > pw-bot: cr