Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp736148rwp; Wed, 12 Jul 2023 23:26:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFy2uB/DjJP/rsgIWaBQkIf4fCqEhvrcZBb2PNRBpo5a46EKiKAd2r6o2lB0cwNEftUayFG X-Received: by 2002:aa7:c256:0:b0:51d:d30d:a037 with SMTP id y22-20020aa7c256000000b0051dd30da037mr915654edo.10.1689229589516; Wed, 12 Jul 2023 23:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689229589; cv=none; d=google.com; s=arc-20160816; b=oJnkzTCOtqnUTOzTdZd0N3cIjhGMUUJGtQiKfZxBcOjKsy3pcVIPNCT7Jj5L7bN9sf c2wdU9Rt1aCGOfzTnSf2U9c7E4B4BWkjbg8xtNoDMQi+/sBWNdcyccouMPdYesHZzYLA kUQseeAWLAkTEwLViF14lHM32Sdg6pamOtttYW3NqW1W5PK8kOvbnJlRCRmEJ88mmwGj hcB+KcS1slLn1RDA754we2SsoeHPrSXRRrJxrohurGyLvAna8L0JVUed3+y+AgcDkPW5 Y5hYd+Cdh8rNw+q9h3NoSZ3iTguqNN0BXge3Oq4s4Ojs9YkE0OoDLet5b6U2f0yiBxgi a/Jw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020aa7d393000000b0051e0c84ecc8si7499820edq.317.2023.07.12.23.26.05; Wed, 12 Jul 2023 23:26:29 -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 S233994AbjGMGBt (ORCPT + 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 ); 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 To: , CC: , , , , , , , , , , , , , , , , , , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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