Message ID | 20230713060111.14169-1-hkelam@marvell.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1620397vqm; Wed, 12 Jul 2023 23:15:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCxPVC+B204XB93loeaGtYa46Mq71S6IENJrbvGErwEszekP6iMlJnWdpIaE5M/e7eOon7 X-Received: by 2002:a2e:9844:0:b0:2b6:da88:a2d0 with SMTP id e4-20020a2e9844000000b002b6da88a2d0mr474581ljj.47.1689228924518; Wed, 12 Jul 2023 23:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689228924; cv=none; d=google.com; s=arc-20160816; b=W3SX7dRjaUB6FJzpkqy7gM6GxJf3DHRyzOjCKucBc/PVGLI6HvhGYqIUwm1kZMt8d6 dPTsIrFxRPW4XF3sY4AGV8pJ73dqf0XBZovFRA99fwSbVWwv4eIoYels5FwaFAP3/Nx8 BZcF85qoRMFnK65TYibCIvqr3DsMIOIAGyCYxdMwGVSLvBa27NWtLOV7l6Jy1VcXR7b4 R0ziq7/UCWlhipRKZUU+QCkkjzj0c+6YVruVDVhtBEvpITiKjz//j3Nc6V6vpwjAron9 B0MKsDg5tXyEVREplu0GcsFVSXanlVHksurEeLF8E0sDBsoT/7x6UluzlOqsywXcfrlS 0tkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=fqHrSBL3hoY+JjPtKwIfd8KWeoYZRh46fiQOckzwMdQ=; fh=WTB7wSncyt74iOQYSs1LHXSzBhyN3wdzAdsgdEGhJyY=; b=LIxej+y8wajuvT7uAeo0VniV90u2JMmYhsmxywabmVevp/m4Z7c4pZ/Gv2Y9JHo6sY SynDYfhS3IR3PpgW88WRVSicPgDmu4VbnJAuuU5qqeSLufmNkl32V1zyebt4+D5aJfWa HmOMStS/egrrV9thb+fySLOJd7CCfgCSL01FbonNQG+D+pFIM5J1+qGJX+tiN8gY790o rjmhcetQmSbCY4yHD+0Vsuuwy2I82VhvxuZJ9RRJfbN9dlDhGM5Ray8ohL0gnr7VI3+u F6bTgBOyf95GY2x0k6WEQ+um6f3F0SBWsNMCgC71ivublDUBGMrUEkeGigYBummPAbFN goYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=cDimJe33; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170906408c00b00988b2dfc3b3si6649024ejj.517.2023.07.12.23.14.59; Wed, 12 Jul 2023 23:15:24 -0700 (PDT) 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=@marvell.com header.s=pfpt0220 header.b=cDimJe33; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233998AbjGMGBt (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 13 Jul 2023 02:01:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234003AbjGMGBl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Jul 2023 02:01:41 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D1CD269D; Wed, 12 Jul 2023 23:01:36 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36D1U1pS028125; Wed, 12 Jul 2023 23:01:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=fqHrSBL3hoY+JjPtKwIfd8KWeoYZRh46fiQOckzwMdQ=; b=cDimJe33RrMIlHzeEvuLSzTg346kCs0ClHbxAIu5ZA2lktVBp5ekg5ylN0XbXn5F5qIo 1SygmAgHXCRz0ygq/5sPM6NVUyYvWUzX7LhvFE2mGR/KsYbsw2JTwanoENiNgCOT1z4/ 7411nzZ+FItlKBlegLBZcIQqi/+ixGrQA7YsAn4dEPRFMES3vgaiajjpRfDqlnTT9vbW iNRNXubQNVaJ4udr3eVwwtCyNslFGGjYc9BuA7Z4JIUR0OkZUDr9A76CK6buOnF5RIUB Mp78iKJ1d9WneOyte0TwkANUJfpRnMx3t9p1nQ7s366cAfUMqTqFClblzrsyzaZAcTu7 wA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3rsb7rf06d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 23:01:21 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 12 Jul 2023 23:01:19 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 12 Jul 2023 23:01:19 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id ABC873F707B; Wed, 12 Jul 2023 23:01:12 -0700 (PDT) From: Hariprasad Kelam <hkelam@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <willemdebruijn.kernel@gmail.com>, <andrew@lunn.ch>, <sgoutham@marvell.com>, <lcherian@marvell.com>, <gakula@marvell.com>, <jerinj@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com>, <naveenm@marvell.com>, <edumazet@google.com>, <pabeni@redhat.com>, <jhs@mojatatu.com>, <xiyou.wangcong@gmail.com>, <jiri@resnulli.us>, <maxtram95@gmail.com>, <corbet@lwn.net>, <linux-doc@vger.kernel.org> Subject: [net-next Patchv2 0/3] support Round Robin scheduling Date: Thu, 13 Jul 2023 11:31:08 +0530 Message-ID: <20230713060111.14169-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: Yb-o6J9QFiPlFuhPxNFeow5bG3IBEEQF X-Proofpoint-ORIG-GUID: Yb-o6J9QFiPlFuhPxNFeow5bG3IBEEQF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-13_02,2023-07-11_01,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771284908777676474 X-GMAIL-MSGID: 1771284908777676474 |
Series |
support Round Robin scheduling
|
|
Message
Hariprasad Kelam
July 13, 2023, 6:01 a.m. UTC
octeontx2 and CN10K silicons support Round Robin scheduling. When multiple traffic flows reach transmit level with the same priority, with Round Robin scheduling traffic flow with the highest quantum value is picked. With this support, the user can add multiple classes with the same priority and different quantum in htb offload. This series of patches adds support for the same. Patch1: implement transmit schedular allocation algorithm as preparation for support round robin scheduling. Patch2: Allow quantum parameter in HTB offload mode. Patch3: extends octeontx2 htb offload support for Round Robin scheduling Naveen Mamindlapalli (3): octeontx2-pf: implement transmit schedular allocation algorithm sch_htb: Allow HTB quantum parameter in offload mode octeontx2-pf: htb offload support for Round Robin scheduling -- v2 * change data type of otx2_index_used to reduce size of structure otx2_qos_cfg .../marvell/octeontx2/nic/otx2_common.c | 1 + .../marvell/octeontx2/nic/otx2_common.h | 1 + .../net/ethernet/marvell/octeontx2/nic/qos.c | 347 ++++++++++++++++-- .../net/ethernet/marvell/octeontx2/nic/qos.h | 11 +- .../net/ethernet/mellanox/mlx5/core/en/qos.c | 4 +- include/net/pkt_cls.h | 1 + net/sched/sch_htb.c | 7 +- 7 files changed, 329 insertions(+), 43 deletions(-) -- 2.17.1
Comments
On Thu, 13 Jul 2023 11:31:08 +0530 Hariprasad Kelam wrote: > octeontx2 and CN10K silicons support Round Robin scheduling. When multiple > traffic flows reach transmit level with the same priority, with Round Robin > scheduling traffic flow with the highest quantum value is picked. With this > support, the user can add multiple classes with the same priority and > different quantum in htb offload. Please extend the driver documentation appropriately, there's a "Setup HTB offload" section which only shows strict prio now.
> -----Original Message----- > From: Jakub Kicinski <kuba@kernel.org> > Sent: Friday, July 14, 2023 8:58 AM > To: Hariprasad Kelam <hkelam@marvell.com> > On Thu, 13 Jul 2023 11:31:08 +0530 Hariprasad Kelam wrote: > > octeontx2 and CN10K silicons support Round Robin scheduling. When > > multiple traffic flows reach transmit level with the same priority, > > with Round Robin scheduling traffic flow with the highest quantum > > value is picked. With this support, the user can add multiple classes > > with the same priority and different quantum in htb offload. > > Please extend the driver documentation appropriately, there's a "Setup HTB > offload" section which only shows strict prio now. Thanks for the review. Will add the changes in the next version. Thanks, Hariprasad k > -- > pw-bot: cr