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 8A4E1A0032; Fri, 18 Feb 2022 08:42:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B645C4115A; Fri, 18 Feb 2022 08:42:18 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 9B22C41151 for ; Fri, 18 Feb 2022 08:42:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645170136; x=1676706136; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=4cr4lDATOL/E23xYyCsv+y0pfT7HvN0yUk8DX1zO1uE=; b=AlCwFknVIKi7eKQEfSmJQNtc0QdKtx0OLo9CZMOP3vFL1Pt9z+ANySgt PEyPHL7uJ9Rgly1kfh3ngOkXWX66N2rc1tH1YsCFh2saEb4tqkEjKJkw4 JzG+1fWxxWpho0itd2a4Kfu9ugq3XTnfb8OX/kKGzXfPBMYqbA5IAwFw5 KaOwL9NL0CKGiY+u0fJ7MoZsWPVXKLM8ngvZ/MTE+F+JpjTNoWe6p9sdu mmtzDC2tMWijFOSB4GzqR2GZRm+3EOu7iZ8ALJQs0xDIM4AB3uco1QCbC GKEU/8bASCwx5Y3bOTyRE2ip2DFuLaICVhDc0PS8Ppj+GWRMWBx/cEtuB g==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="231710952" X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="231710952" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 23:42:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="546164958" Received: from silpixa00397515.ir.intel.com (HELO silpixa00397515.ger.corp.intel.com) ([10.237.222.51]) by orsmga008.jf.intel.com with ESMTP; 17 Feb 2022 23:42:15 -0800 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, thomas@monjalon.net Subject: [PATCH v1 2/4] sched: Always enable stats in HQoS library. Date: Fri, 18 Feb 2022 07:41:46 +0000 Message-Id: <20220218074148.2549134-3-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220218074148.2549134-1-megha.ajmera@intel.com> References: <20220218074148.2549134-1-megha.ajmera@intel.com> 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 Removed "RTE_SCHED_COLLECT_STATS" flag from HQoS. Signed-off-by: Megha Ajmera --- lib/sched/rte_sched.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c index 6c3e3bb0bf..6f2d85edc0 100644 --- a/lib/sched/rte_sched.c +++ b/lib/sched/rte_sched.c @@ -1790,8 +1790,6 @@ rte_sched_port_queue_is_empty(struct rte_sched_subport *subport, #endif /* RTE_SCHED_DEBUG */ -#ifdef RTE_SCHED_COLLECT_STATS - static inline void rte_sched_port_update_subport_stats(struct rte_sched_port *port, struct rte_sched_subport *subport, @@ -1849,8 +1847,6 @@ rte_sched_port_update_queue_stats_on_drop(struct rte_sched_subport *subport, #endif } -#endif /* RTE_SCHED_COLLECT_STATS */ - #ifdef RTE_SCHED_CMAN static inline int @@ -1989,18 +1985,14 @@ rte_sched_port_enqueue_qptrs_prefetch0(struct rte_sched_subport *subport, struct rte_mbuf *pkt, uint32_t subport_qmask) { struct rte_sched_queue *q; -#ifdef RTE_SCHED_COLLECT_STATS struct rte_sched_queue_extra *qe; -#endif uint32_t qindex = rte_mbuf_sched_queue_get(pkt); uint32_t subport_queue_id = subport_qmask & qindex; q = subport->queue + subport_queue_id; rte_prefetch0(q); -#ifdef RTE_SCHED_COLLECT_STATS qe = subport->queue_extra + subport_queue_id; rte_prefetch0(qe); -#endif return subport_queue_id; } @@ -2042,12 +2034,10 @@ rte_sched_port_enqueue_qwa(struct rte_sched_port *port, if (unlikely(rte_sched_port_cman_drop(port, subport, pkt, qindex, qlen) || (qlen >= qsize))) { rte_pktmbuf_free(pkt); -#ifdef RTE_SCHED_COLLECT_STATS rte_sched_port_update_subport_stats_on_drop(port, subport, qindex, pkt, qlen < qsize); rte_sched_port_update_queue_stats_on_drop(subport, qindex, pkt, qlen < qsize); -#endif return 0; } @@ -2059,10 +2049,8 @@ rte_sched_port_enqueue_qwa(struct rte_sched_port *port, rte_bitmap_set(subport->bmp, qindex); /* Statistics */ -#ifdef RTE_SCHED_COLLECT_STATS rte_sched_port_update_subport_stats(port, subport, qindex, pkt); rte_sched_port_update_queue_stats(subport, qindex, pkt); -#endif return 1; } -- 2.25.1