From patchwork Wed Oct 5 18:24:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ajmera, Megha" X-Patchwork-Id: 117409 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BCA3A0542; Wed, 5 Oct 2022 20:27:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E3A240DFB; Wed, 5 Oct 2022 20:27:21 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 191C240DDC; Wed, 5 Oct 2022 20:27:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664994439; x=1696530439; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UJOltTy+azAFiogdydPskfdiZUrdkbo8dTISBV3sIiM=; b=QBOKCPiWwtb5m+SBK2p9tNq8lIPNGgKc7sJTp+DluQ6ikqZc+d9ukTIv MXW5do1r66JGnSYWW2VMaD2vXtAjyJWHT4hSFtFHeVO/vVD/LwAeCrq2Z iTWduvwXIImrHIKtgjbmqHSk1c0LIkKnWqzya25m9rrF9qeF6BNgB49mI bbv/sWqTrhTkCA3KdF/v4dW095TyyH6fcjkBDFxueQWjvKyBaJmq8BZJf Dyxq+s6kxwhgXSgSHGODBJR1kT1uHZS+c4xFl0/GuT4Rc/vIoi+9QPnLg N658Grp33yR8KPAFybwFznHysTNZygjFKv1wIVZVlHyLlfMv7jFBCUmln A==; X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="283605059" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="283605059" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2022 11:27:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="624411858" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="624411858" Received: from unknown (HELO localhost.localdomain) ([10.190.213.60]) by orsmga002.jf.intel.com with ESMTP; 05 Oct 2022 11:27:16 -0700 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com Cc: stable@dpdk.org Subject: [PATCH v3] sched: subport field is unused in hqos profile Date: Wed, 5 Oct 2022 18:24:16 +0000 Message-Id: <20221005182416.363273-1-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221005181504.309060-1-megha.ajmera@intel.com> References: <20221005181504.309060-1-megha.ajmera@intel.com> MIME-Version: 1.0 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 Removed unused subport field from profile.cfg Correctly using subport profile id in subport config load. Fixes: 802d214dc880 ("examples/qos_sched: update subport rate dynamically") Cc: cristian.dumitrescu@intel.com Signed-off-by: Megha Ajmera --- examples/qos_sched/cfg_file.c | 2 +- examples/qos_sched/profile.cfg | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c index 3d5d75fcf0..ca871d3287 100644 --- a/examples/qos_sched/cfg_file.c +++ b/examples/qos_sched/cfg_file.c @@ -157,7 +157,7 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg, profiles = rte_cfgfile_num_sections(cfg, "subport profile", sizeof("subport profile") - 1); - subport_params[0].n_pipe_profiles = profiles; + port_params.n_subport_profiles = profiles; for (i = 0; i < profiles; i++) { char sec_name[32]; diff --git a/examples/qos_sched/profile.cfg b/examples/qos_sched/profile.cfg index c9ec187c93..e8de101b6c 100644 --- a/examples/qos_sched/profile.cfg +++ b/examples/qos_sched/profile.cfg @@ -26,8 +26,6 @@ number of subports per port = 1 number of pipes per subport = 4096 queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64 -subport 0-8 = 0 ; These subports are configured with subport profile 0 - [subport profile 0] tb rate = 1250000000 ; Bytes per second tb size = 1000000 ; Bytes