From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64146A0597; Sat, 18 Apr 2020 00:01:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 040C01EC05; Fri, 17 Apr 2020 23:58:27 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id D8A141EBA6 for ; Fri, 17 Apr 2020 23:58:12 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215812euoutp02156976aeef483e4b5c7a6b027b2808ee~Guj2nrfsj0663506635euoutp02I for ; Fri, 17 Apr 2020 21:58:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200417215812euoutp02156976aeef483e4b5c7a6b027b2808ee~Guj2nrfsj0663506635euoutp02I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160692; bh=RVwfVQIU5xOO9qsinW+mlChh7nK3Agte5Qo9g4mU448=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lMjn06XkxJr69Eijgc2DZ6Qfr9eiKSMP0RLT+m4zwhDwiHVWaHX8HBa9QXRzDdP3i zyS5lf2h5POthxfK077EZRA3t8a4yxBxmll5C5E7s19QCUoUR3p6gjpDtx0STMdH3V NIizf2arWKpY6bqPMjLF/KPlO2XaGNId6FUOPjIs= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200417215811eucas1p13574077911d84db9691fd16e772b4c36~Guj1nnd3R0152001520eucas1p14; Fri, 17 Apr 2020 21:58:11 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BD.FF.61286.3762A9E5; Fri, 17 Apr 2020 22:58:11 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200417215810eucas1p17a63d33a4d49c8866733a33ce717484b~Guj0hxcMa1204912049eucas1p1S; Fri, 17 Apr 2020 21:58:10 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417215810eusmtrp1ddc9770377d006152c70bababb6a9c9c~Guj0hQvte0397603976eusmtrp1x; Fri, 17 Apr 2020 21:58:10 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-62-5e9a26730c32 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E1.62.07950.2762A9E5; Fri, 17 Apr 2020 22:58:10 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200417215809eusmtip2f6e98a0341e47d9421081ae9f7410317~Guj0C9Wy40325203252eusmtip20; Fri, 17 Apr 2020 21:58:09 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon , Cristian Dumitrescu , Jasvinder Singh Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:39 +0200 Message-Id: <20200417215739.23180-18-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKIsWRmVeSWpSXmKPExsWy7djPc7rFarPiDK42KVtMut/AZPHu03Ym i0+HnrNbfHpwgsWBxePXgqWsHov3vGTyOHZzGnsAcxSXTUpqTmZZapG+XQJXxuZzvcwFawQr Xq06zdrAeIGvi5GTQ0LAROL7t3esXYxcHEICKxglDs+bxAzhfGGUWLpgA5TzmVGia9NvVpiW j3v3sEMkljNKdM+ZyQhX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YJzDyLWBkWMUoklpanJueW2ykV5yYW1yal66XnJ+7 iREYgtuO/dyyg7HrXfAhRgEORiUeXoOemXFCrIllxZW5hxglOJiVRHgPugGFeFMSK6tSi/Lj i0pzUosPMZoCHTWRWUo0OR8YH3kl8YamhuYWlobmxubGZhZK4rwdAgdjhATSE0tSs1NTC1KL YPqYODilGhh3T3upftzm5cPG+rVaW1j9j9t9XPHE5sRm9yfyM0PO37P91HT16/nHXsVhDF8z mz9en1LGvqqsaZnWG66u9ipBL/OQm+kXU27PL3y3XPpNf+C/DE7dDUGGnga/tFYyaLVW5K+O yeJw3u/9LvngHsW0ynw9VcnA6MWykwV4Jso3GFodYtzxiUOJpTgj0VCLuag4EQCcGWsMVwIA AA== X-CMS-MailID: 20200417215810eucas1p17a63d33a4d49c8866733a33ce717484b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215810eucas1p17a63d33a4d49c8866733a33ce717484b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215810eucas1p17a63d33a4d49c8866733a33ce717484b References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 17/17] sched: replace library debug flag with global one X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Use global debug flag RTE_DEBUG instead of RTE_SCHED_DEBUG. The old define is completely removed from source code and config. Signed-off-by: Lukasz Wojciechowski --- config/common_base | 1 - lib/librte_sched/rte_sched.c | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config/common_base b/config/common_base index ae6db0adb..eb8b83224 100644 --- a/config/common_base +++ b/config/common_base @@ -976,7 +976,6 @@ CONFIG_RTE_LIBRTE_FLOW_CLASSIFY=y # Compile librte_sched # CONFIG_RTE_LIBRTE_SCHED=y -CONFIG_RTE_SCHED_DEBUG=n CONFIG_RTE_SCHED_RED=n CONFIG_RTE_SCHED_COLLECT_STATS=n CONFIG_RTE_SCHED_SUBPORT_TC_OV=n diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index c0983ddda..e19f1d959 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -1482,7 +1482,7 @@ rte_sched_queue_read_stats(struct rte_sched_port *port, return 0; } -#ifdef RTE_SCHED_DEBUG +#ifdef RTE_DEBUG static inline int rte_sched_port_queue_is_empty(struct rte_sched_subport *subport, @@ -1493,7 +1493,7 @@ rte_sched_port_queue_is_empty(struct rte_sched_subport *subport, return queue->qr == queue->qw; } -#endif /* RTE_SCHED_DEBUG */ +#endif /* RTE_DEBUG */ #ifdef RTE_SCHED_COLLECT_STATS @@ -1627,7 +1627,7 @@ static inline int rte_sched_port_red_drop(struct rte_sched_port *port __rte_unus #endif /* RTE_SCHED_RED */ -#ifdef RTE_SCHED_DEBUG +#ifdef RTE_DEBUG static inline void debug_check_queue_slab(struct rte_sched_subport *subport, uint32_t bmp_pos, @@ -1654,7 +1654,7 @@ debug_check_queue_slab(struct rte_sched_subport *subport, uint32_t bmp_pos, bmp_slab, bmp_pos); } -#endif /* RTE_SCHED_DEBUG */ +#endif /* RTE_DEBUG */ static inline struct rte_sched_subport * rte_sched_port_subport(struct rte_sched_port *port, @@ -2404,7 +2404,7 @@ grinder_next_pipe(struct rte_sched_port *port, if (unlikely(rte_bitmap_scan(subport->bmp, &bmp_pos, &bmp_slab) <= 0)) return 0; -#ifdef RTE_SCHED_DEBUG +#ifdef RTE_DEBUG debug_check_queue_slab(subport, bmp_pos, bmp_slab); #endif -- 2.17.1