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 7D0EFA0597; Sat, 18 Apr 2020 00:00:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FCA91EBF3; Fri, 17 Apr 2020 23:58:24 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 296A31EB9A for ; Fri, 17 Apr 2020 23:58:10 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215809euoutp0100aa63062517f1ec74fa1fbeb8d4a56d~Guj0HHG0Y0105301053euoutp01R for ; Fri, 17 Apr 2020 21:58:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200417215809euoutp0100aa63062517f1ec74fa1fbeb8d4a56d~Guj0HHG0Y0105301053euoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160690; bh=Xi7JGoEEy/gqH5uTdS2hr/ii0GpwoHeIGpZFCK+j/cQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E+U6LgNQzDi8mkiTTAghg+hWK82USRfnKvjgJJrXiTM4WZkqC/Krzp6u3i2/2RyTt 6NTyjX0ZaoGtouzAJpYq6uvPWEAf/uOoZiBqouV23ZrXknYcP5KQFRyxOqLbK4I8sr JqWGIcJZHXMN9luQjpJar7e+oTOrhwxOFqcRmuO8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200417215809eucas1p28b0b3944577a4e184f40efca3817badb~Guj0Bm_xK1749217492eucas1p2d; Fri, 17 Apr 2020 21:58:09 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5D.FF.61286.1762A9E5; Fri, 17 Apr 2020 22:58:09 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200417215808eucas1p1aa9a24a464a4470d27b6c770d2e8c297~GujzKNHm70162301623eucas1p1t; Fri, 17 Apr 2020 21:58:08 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200417215808eusmtrp2ae69b56425dfe49222b0219c93eadd64~GujzJrZhL2952229522eusmtrp2l; Fri, 17 Apr 2020 21:58:08 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-5f-5e9a26714850 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DD.94.08375.0762A9E5; Fri, 17 Apr 2020 22:58:08 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200417215808eusmtip202622fd726705b2987eada2dc4390258~Gujyjo9ZV0325203252eusmtip2y; Fri, 17 Apr 2020 21:58:08 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon , Maxime Coquelin , Zhihong Wang , Xiaolong Ye Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:37 +0200 Message-Id: <20200417215739.23180-16-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+NgFnrNIsWRmVeSWpSXmKPExsWy7djPc7qFarPiDH5f0rN492k7k8Wxzj0s Fp8enGCx+PPG1GLzxUlMDqwevxYsZfVYvOclk8exm9PYPd7vu8oWwBLFZZOSmpNZllqkb5fA ldG57ydjwV+Bio8/3jE2MM7l62Lk4JAQMJE48suni5GLQ0hgBaPEwt9N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RTYQm0VAVWLe4k6wBbwC bhI3evghFshLrN5wAKyVEyi89OV3RhBbSMBV4uHDU+wTGPkWMDKsYhRJLS3OTc8tNtQrTswt Ls1L10vOz93ECAzKbcd+bt7BeGlj8CFGAQ5GJR5eg56ZcUKsiWXFlbmHGCU4mJVEeA+6AYV4 UxIrq1KL8uOLSnNSiw8xmgLdNJFZSjQ5HxgxeSXxhqaG5haWhubG5sZmFkrivB0CB2OEBNIT S1KzU1MLUotg+pg4OKUaGNtbbnSfUffiFBV/LPVU9PDDK7Wf8jp4Z15q8jh3yyRyn3HdJC1R Tp91+tLVvqc866JXh0QYurgyePU6s4aGHogKXdl76dWlPpvV0S5VJpxiC+KiVjreuPF7/ZXp KgbXCkuUuLLaUgXrDY9I3/EJ25wxscS8Vv/JLonEMwaKLAs5OFgPOicosRRnJBpqMRcVJwIA ueXF8mACAAA= X-CMS-MailID: 20200417215808eucas1p1aa9a24a464a4470d27b6c770d2e8c297 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215808eucas1p1aa9a24a464a4470d27b6c770d2e8c297 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215808eucas1p1aa9a24a464a4470d27b6c770d2e8c297 References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 15/17] vhost: 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_LIBRTE_VHOST_DEBUG. The old define is completely removed from source code and config. Signed-off-by: Lukasz Wojciechowski --- config/common_base | 1 - lib/librte_vhost/vhost.h | 2 +- lib/librte_vhost/vhost_crypto.c | 2 +- lib/librte_vhost/vhost_user.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/common_base b/config/common_base index 025ae7c62..1f7be1219 100644 --- a/config/common_base +++ b/config/common_base @@ -1031,7 +1031,6 @@ CONFIG_RTE_LIBRTE_PDUMP=y # CONFIG_RTE_LIBRTE_VHOST=n CONFIG_RTE_LIBRTE_VHOST_NUMA=n -CONFIG_RTE_LIBRTE_VHOST_DEBUG=n # # Compile vhost PMD diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 2087d1400..ea44e3aa6 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -520,7 +520,7 @@ extern int vhost_data_log_level; "VHOST_DATA : " fmt, ##args) : \ 0) -#ifdef RTE_LIBRTE_VHOST_DEBUG +#ifdef RTE_DEBUG #define VHOST_MAX_PRINT_BUFF 6072 #define PRINT_PACKET(device, addr, size, header) do { \ char *pkt_addr = (char *)(addr); \ diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c index 68911972b..5648e5c34 100644 --- a/lib/librte_vhost/vhost_crypto.c +++ b/lib/librte_vhost/vhost_crypto.c @@ -16,7 +16,7 @@ #define IV_OFFSET (sizeof(struct rte_crypto_op) + \ sizeof(struct rte_crypto_sym_op)) -#ifdef RTE_LIBRTE_VHOST_DEBUG +#ifdef RTE_DEBUG #define VC_LOG_ERR(fmt, args...) \ RTE_LOG(ERR, USER1, "[%s] %s() line %u: " fmt "\n", \ "Vhost-Crypto", __func__, __LINE__, ## args) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index bd1be0104..dea334dfd 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -967,7 +967,7 @@ add_guest_pages(struct virtio_net *dev, struct rte_vhost_mem_region *reg, return 0; } -#ifdef RTE_LIBRTE_VHOST_DEBUG +#ifdef RTE_DEBUG /* TODO: enable it only in debug mode? */ static void dump_guest_pages(struct virtio_net *dev) -- 2.17.1