Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp456478rwb; Thu, 12 Jan 2023 23:14:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXtJq7jaJNJNfAsn2UqeodeFhtL5V0rde4nnnhsOiQtRW3TYoxvImhA9tVcL4xspS+8qC5Q1 X-Received: by 2002:a05:6a20:4d9e:b0:af:91a1:94a0 with SMTP id gj30-20020a056a204d9e00b000af91a194a0mr78939997pzb.32.1673594061140; Thu, 12 Jan 2023 23:14:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673594061; cv=pass; d=google.com; s=arc-20160816; b=mvEhxu3Z+iDxeiBBTtfpXER+Q0jj5NlAfAX1Eh1c+5BjFr+DlElOAl+34ebG6f85ea QCjGCjTzkeDsjUbqqmphazWQebfnkXcdQnFnsrajsQetWxu1ve52R0LcRrYKziRXFY1C 8KP8QUwMEzZYhvdhoGmukcIkVqW07Qs9H+XYPUZleRWP+7WCW0uzg66YRkterIuysxKg LTPhTdxh5QBqEMeVgZgbii704RNuT8bho9yVmE+0n7Yg+yZfV1vOQmf+6VD0HP7XIP/U veq6Lsstdn662TxqMQj2VIUtoF5LLKb+rbIAY5hBJhWx4crdrCoyE+NYVU5zwt/xULLW bLGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=bKuxlAI6YpDtvn/krLpVz+hzEwh7xhIX12pLy6AtZCw=; b=ka4qo/EdKWY6Ihn6OriM3ecaujtz8xPjMFuaSZD2FbyoENkGjGP+vt7IwR55LSL1n7 yAyTw2p28bgoxofJlLBNNWbdIhNCfl/duB9tE4PYBcK/OjbXcvHesdwsEjBPE4yjyZPv ZV3YR7QawNR8BsQOHyLwRKhAMwVKj9trxT8gmjQ9FdOyJMfM20MnBWTsmciZ35EaNhqG UTUGJf35Ikdp5uFh5URSUa6QH0EcZ4wjwIx39/RvGjoXTXFjBxusGgvxrdiGHMJedSqv JiPBM+l9nvowk8ec8M2mNDk62m8Bep3R3/ivO/RWj17CSXDGb5IPtfldj1vxUYdjn8fX +fJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=a1jRCxT9; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a170902b11700b001932c1921c4si13964170plr.410.2023.01.12.23.14.14; Thu, 12 Jan 2023 23:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=a1jRCxT9; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237550AbjAMGVP (ORCPT + 50 others); Fri, 13 Jan 2023 01:21:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236486AbjAMGU1 (ORCPT ); Fri, 13 Jan 2023 01:20:27 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2054.outbound.protection.outlook.com [40.107.92.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AAFF5C928; Thu, 12 Jan 2023 22:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UGXWNrW0DXRSpqsxZ1dXY7iaC81wOxOK3ZtmYWdwv6rWlDQQB9vDelwuuTFqFnYJ+TTsZEfvWyF+N+MOtv5e3whqkx4i/kwIN3LwKQr5DMRudimm3SVo73cuWwPSn02DK6Ek/1CuwYWI7N6QTMFmtBqgP9CG1XVMRUXXu2x7Nn+0YzH6SW3x3nN3Pu0tFHQ4uWOnO5gYwH5I5/VyqW+r/Vjazoleemboxto2xzIpYMg08hENSzq83Yf4Qi2i+L6t3AcFuaMPffVdCFr2JMgyj7AfD8lYrX/U69XYrpxWIG12H1fh1DblSmaOZyqlWAhFl4KRAD/FwUoPVYv77OnCqQ== 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=bKuxlAI6YpDtvn/krLpVz+hzEwh7xhIX12pLy6AtZCw=; b=df71Er9kqd3XR0ytugfyPUl4TUVI8Mg6SoEKOIm0rmNokYNsWROV+lIZ7w/IV3lxUDfj6VxOnIqbYTDo0I/tYTr48XQ4txaYvK+ked6b3Dx00HGbHVbibmPg64MEw0oSCPdHOfQX1plEEs5WbvgVod7b13N7tXo2vMx5MMlhCylLF3x0L+ugcoET2nyGP7xbHKmYTHouuG92oZP2C6lZHQ6Cug+2CkTjaGegU3/Myx4qcTvFrmQd7LY9yXPm/xXTNKfBzKLV8IWU5Ohg0zG5TZPrU2tsEj7Kyc79AFK3m+ByP0JSJvrg18KMeTRgcr2awPJFjI2dNKoTFgInuHro2w== 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=bKuxlAI6YpDtvn/krLpVz+hzEwh7xhIX12pLy6AtZCw=; b=a1jRCxT97Q8//ZrBxmB5bClzJvFQ7ieP5Y5wAGfW9sxtene4gZmyRLMEmqTY3RLVQeMqAQxiS1U2fR909IMar1h9KfRDO3WK9gXpj5XLaVt8KiFam5k7rNdWWhklotEEUxFg5mhuCuLoWslvckfcJNuGy12RqxbI3PKIechJ6RDYKldEHzP1LhwFqRlU49fN7jkuW+wsMYYt5+1C01ItLgkvcwt7OOthjnYEuoFl6MwdVgvqJlK3QmH09vt3QPIZoZ0QFn+Puaav71LjsjPV8cW2fdKEa/1ur5gOnhj0ZSthBbaSEy1DFJPb0itfQDWObUGBae2AMwgAP8TU7TYVmQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) by BL1PR12MB5223.namprd12.prod.outlook.com (2603:10b6:208:315::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Fri, 13 Jan 2023 06:20:20 +0000 Received: from BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::8031:8093:2f25:f2ab]) by BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::8031:8093:2f25:f2ab%7]) with mapi id 15.20.5986.018; Fri, 13 Jan 2023 06:20:20 +0000 From: Rahul Rameshbabu To: Jakub Kicinski Cc: Hariprasad Kelam , , , , , , , , , , , Maxim Mikityanskiy Subject: Re: [net-next PATCH 0/5] octeontx2-pf: HTB offload support References: <20230112173120.23312-1-hkelam@marvell.com> <20230112210738.72393731@kernel.org> Date: Thu, 12 Jan 2023 22:20:06 -0800 In-Reply-To: <20230112210738.72393731@kernel.org> (Jakub Kicinski's message of "Thu, 12 Jan 2023 21:07:38 -0800") Message-ID: <87ilhbx8fd.fsf@nvidia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: BYAPR11CA0047.namprd11.prod.outlook.com (2603:10b6:a03:80::24) To BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2743:EE_|BL1PR12MB5223:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b274341-d2fe-4ec4-dd9d-08daf52e3f3e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hF3D1J2C/8YFjSb8XjoaLaV+5Q28u2hlXw69o5nfNQTBfWdGGWtwJN8ftLsC2aVKsrzW59FsC6bqiAYKd+Jw51Mch4kEEt3MZ+k4qAUd4UOHkF3xbTNaPuGhlqaPm+du+ZcOApKbgqB3xzZU7EWGBN9KeVK06cyqJn2vdZKyTYMlTOtCm43K96xluq0Owb+7e6jy00n6PCeQnIV8bbh+yakYqEs9Lkofuo3xlLtFkqc5CFGtbroWVRQN8isOW19/67ILCEDKhyhNQUr/SJIRyHPGHFofblqMI2NNkgPA0NHmXTp/nMIMw9bUL2D/s6oxNGwKaW7labP/zl1WwPEtiZNlAbcUt/EK/uNUVMnnjU7WxoD4UZxGj5q8JZ6+yfaR7utRS1mfiLQcBKaziOAjRpPw3lh/qg+cNNEh/fiKmZ8tja0JtKKnx6UKumVo4+00QPyhQ2az7C5uDuzSh9Nqv0EQBj5HOHvIiUYyiZAWsmO8m43Y57xrg0xM/DHjUBQIAXJMnR9NlqprXiZ2EH9zoBsJLfH61dLIuy12ppxvkOKEVO9u+RZxMUo4d0EVbj9GTHLQWIvCme2AS0nmRxiFc/HzHxYNfAtKkOECxQEGMh54CLXJJtCz+gPJisKueODJzkumUVKX42FbyudKh3t2EclpmeIcar1IbMWOxfsH81RTcxWrfkmZsW/61Kcux7l1P77dPJRzJCWtpvn4DK61JQzMaxfmMGPhNiw7kFnP8Tc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2743.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(366004)(39860400002)(346002)(136003)(396003)(451199015)(478600001)(6486002)(966005)(41300700001)(6512007)(38100700002)(86362001)(316002)(54906003)(2616005)(66556008)(66946007)(186003)(66476007)(36756003)(5660300002)(7416002)(6506007)(2906002)(6666004)(8676002)(6916009)(4326008)(83380400001)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GOMRKLKqVCqa74zgQ5ORnKkU47l9IPT+NCwRZLSpvUbeTFcEhKDaiDGQDG/9?= =?us-ascii?Q?4gEOuxUVP3l0kcXsiVBaCpoVGkuQeYmv05dhNmFxDk+8bgoPr6p3Hpiy15X+?= =?us-ascii?Q?duWYZTy9V1hG6lxlXtLUF01DWWOS1RfSpxEIB4atMe5wpuYFtmXWekPNH7+Y?= =?us-ascii?Q?sH2Tay0RymjvGvQoZtDNTRYe+VUsPiLZiV1gpBLv1iwuUhO5Eg8zOKJuJGo2?= =?us-ascii?Q?AFmGKeZL51LbGjsbldo1+SNdD+K9rBccq1Un5k5gtiO9+Xm76caltlSQXvYN?= =?us-ascii?Q?sEU/WK+HryffGbMvjuhR8XqTfq8mi3K+Ek6A9ehddtZUUT9lIarxxh6YARRd?= =?us-ascii?Q?NgJRelT4puRgHvVIJHBdQ+1+Lk53FOnEigIDSyufm/+EhZLhp60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l7lwciPIzQc6iHD/Hl9PXp983XS+jVbiC?= =?us-ascii?Q?EwyJFnfebPBTrk5p/IefR513NRcvTm7ejOxEnsAs94KONI1za0SBFwDXTo6l?= =?us-ascii?Q?bmPuqlZYFE6sMpKcaoooZ+0MI1OkS6fcHfeDr8cR1T/9svxmg/VRkRt3/8WW?= =?us-ascii?Q?n9OwYdYW7qoqdnLHohLoE8rs8QyJ8Cw9R57hg3o043r5QZGK88IBH1S+vTWh?= =?us-ascii?Q?L2T9LFzVrpMM/r80k5GVdEbcNovWKjEvymJ5pgWQJggMEHXthP3UxfUvLgP4?= =?us-ascii?Q?54iIAblV+wy2e5/ngN5EiE1nbzomt8hi3yFuDyr2eGyuNiO/gHDUcoZxULTg?= =?us-ascii?Q?SmqOvNzxIdgNKHEG6heHsjW+pHpDMHxaEz2yBmG/I2/7BLMAfHybbv8pFYLQ?= =?us-ascii?Q?UhcNSQ=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b274341-d2fe-4ec4-dd9d-08daf52e3f3e X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2743.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 06:20:20.6294 (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: Q/9KG0WpXJUOXjhiuu1nypOcsp7co8hzvF2oCVlrhpI82F1I3ktaxTPBlXhL0umY3kWm0ujBvBpko2cd9BwLbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5223 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CCed Maxim Mikityanskiy since he has authored and done an extensive amount of work on HTB offload support. On Thu, 12 Jan, 2023 21:07:38 -0800 Jakub Kicinski wrote: > On Thu, 12 Jan 2023 23:01:15 +0530 Hariprasad Kelam wrote: >> octeontx2 silicon and CN10K transmit interface consists of five >> transmit levels starting from MDQ, TL4 to TL1. Once packets are >> submitted to MDQ, hardware picks all active MDQs using strict >> priority, and MDQs having the same priority level are chosen using >> round robin. Each packet will traverse MDQ, TL4 to TL1 levels. >> Each level contains an array of queues to support scheduling and >> shaping. >> >> As HTB supports classful queuing mechanism by supporting rate and >> ceil and allow the user to control the absolute bandwidth to >> particular classes of traffic the same can be achieved by >> configuring shapers and schedulers on different transmit levels. >> >> This series of patches adds support for HTB offload, >> >> Patch1: Allow strict priority parameter in HTB offload mode. >> >> Patch2: defines APIs such that the driver can dynamically initialize/ >> deinitialize the send queues. >> >> Patch3: Refactors transmit alloc/free calls as preparation for QOS >> offload code. >> >> Patch4: Adds devlink support for the user to configure round-robin >> priority at TL1 >> >> Patch5: Adds actual HTB offload support. > > Rahul, since you're working on fixing the HTB offload warn - > would you mind reviewing this series? > > https://lore.kernel.org/all/20230112173120.23312-1-hkelam@marvell.com/ I will take a look at the series and respond to the components I can verify.