From 18acbcb75fcd0dd276da9d3022aaf6cb25999e1c Mon Sep 17 00:00:00 2001 From: Anand B Jyoti Date: Mon, 26 Jun 2017 05:31:13 +0530 Subject: dpdk: Disable debug logs in ACL rte_table_acl_build JIRA: SAMPLEVNF-46 Debug logs enabled by default causes delay in application initialization as there can be many ACL rules to be setup during initialization. This patch disables the ACL logs during rte_table_acl_build by default and can be enabled by setting the RTE_LOG_LEVEL to DEBUG. Change-Id: I48e642f8768135087b0ed4f1677c1c9ac9e0df58 Signed-off-by: Anand B Jyoti --- patches/dpdk_custom_patch/disable-acl-debug-logs.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/dpdk_custom_patch/disable-acl-debug-logs.patch (limited to 'patches/dpdk_custom_patch') diff --git a/patches/dpdk_custom_patch/disable-acl-debug-logs.patch b/patches/dpdk_custom_patch/disable-acl-debug-logs.patch new file mode 100644 index 00000000..e1cd6a65 --- /dev/null +++ b/patches/dpdk_custom_patch/disable-acl-debug-logs.patch @@ -0,0 +1,14 @@ +diff --git a/lib/librte_table/rte_table_acl.c b/lib/librte_table/rte_table_acl.c +index c1eb848..2db880c 100644 +--- a/lib/librte_table/rte_table_acl.c ++++ b/lib/librte_table/rte_table_acl.c +@@ -236,7 +236,9 @@ rte_table_acl_build(struct rte_table_acl *acl, struct rte_acl_ctx **acl_ctx) + return -1; + } + ++#if RTE_LOG_LEVEL > RTE_LOG_INFO + rte_acl_dump(ctx); ++#endif + + *acl_ctx = ctx; + return 0; -- cgit 1.2.3-korg