From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7DA994237F; Mon, 9 Jan 2023 15:59:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6900440687; Mon, 9 Jan 2023 15:59:30 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 5572940F16; Mon, 9 Jan 2023 15:59:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673276368; x=1704812368; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zZaXJPZRigrXkF0oGXEDEfV9bSt13ao4B2YHUqJD6JY=; b=Eg6hFYNJHC/M+PXpIq+RGA5HqmFFMpsAX4IcPW8dHj5lIOKAlk7M3Bc6 uuCmO00id+CgI4mPCXrbvQJix+7uTiMsxP3Io/ovA9Gfx5SsUpNfOUteY 7sv10wIyxgmILPZ7CFi+QKxgh8iAwGtPuwMN5sHA5Ka/o974XMvf7LrI8 0U7kDWhTCJkKKc19ApolItTtza94LKArJT91nu8psQ+xZaGOZy8R0k5LQ yGu4rOctMtDhYybLVy7dqS2I5Um9pmwUFpzf6et3dqtrcPoTK0a9mqhmA VMGP2RB6J9wAFBZV79Mu5zNvOXQTaz//LjmSUspw6cvxTvKcnc0UymcNY w==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="320590302" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="320590302" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 06:59:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="764339954" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="764339954" Received: from unknown (HELO localhost.localdomain) ([10.190.213.60]) by fmsmga002.fm.intel.com with ESMTP; 09 Jan 2023 06:59:14 -0800 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com Cc: stable@dpdk.org, marcinx.danilewicz@intel.com Subject: [PATCH] sched: fix for tc_ov_enable flag position in subport structure. Date: Mon, 9 Jan 2023 14:54:48 +0000 Message-Id: <20230109145448.278463-1-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Current position of "tv_ov_enable" variable in rte_sched_subport structure makes the "memory" variable unused. Fixes: f5e60154ade ("sched: enable traffic class oversubscription conditionally") CC: marcinx.danilewicz@intel.com Signed-off-by: Megha Ajmera --- lib/sched/rte_sched.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c index c91697131d..eaecd7ceb4 100644 --- a/lib/sched/rte_sched.c +++ b/lib/sched/rte_sched.c @@ -202,6 +202,9 @@ struct rte_sched_subport { uint32_t qsize_add[RTE_SCHED_QUEUES_PER_PIPE]; uint32_t qsize_sum; + /* TC oversubscription activation */ + int tc_ov_enabled; + struct rte_sched_pipe *pipe; struct rte_sched_queue *queue; struct rte_sched_queue_extra *queue_extra; @@ -210,8 +213,6 @@ struct rte_sched_subport { struct rte_mbuf **queue_array; uint8_t memory[0] __rte_cache_aligned; - /* TC oversubscription activation */ - int tc_ov_enabled; } __rte_cache_aligned; struct rte_sched_port { -- 2.25.1