From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 50738689B for ; Sat, 3 Dec 2016 11:47:09 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 03 Dec 2016 02:47:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,735,1477983600"; d="scan'208";a="38554802" Received: from dpdk7.bj.intel.com ([172.16.182.76]) by fmsmga006.fm.intel.com with ESMTP; 03 Dec 2016 02:47:07 -0800 From: Qiming Yang To: dev@dpdk.org Cc: Qiming Yang Date: Sat, 3 Dec 2016 18:43:02 +0800 Message-Id: <1480761783-36467-3-git-send-email-qiming.yang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480761783-36467-1-git-send-email-qiming.yang@intel.com> References: <1480761783-36467-1-git-send-email-qiming.yang@intel.com> Subject: [dpdk-dev] [PATCH 2/3] net/i40e: optimize Rx/Tx log message level 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: , X-List-Received-Date: Sat, 03 Dec 2016 10:47:09 -0000 Signed-off-by: Qiming Yang --- drivers/net/i40e/i40e_logs.h | 7 +++++++ drivers/net/i40e/i40e_rxtx.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_logs.h b/drivers/net/i40e/i40e_logs.h index e042e24..5c25dbf 100644 --- a/drivers/net/i40e/i40e_logs.h +++ b/drivers/net/i40e/i40e_logs.h @@ -50,6 +50,13 @@ #define PMD_RX_LOG(level, fmt, args...) do { } while(0) #endif +#ifdef RTE_LIBRTE_I40E_DEBUG_RX_FREE +#define PMD_RX_FREE_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_RX_FREE_LOG(level, fmt, args...) do { } while (0) +#endif + #ifdef RTE_LIBRTE_I40E_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 7ae7d9f..ef25fb1 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -612,7 +612,7 @@ rx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) if (i40e_rx_alloc_bufs(rxq) != 0) { uint16_t i, j; - PMD_RX_LOG(DEBUG, "Rx mbuf alloc failed for " + PMD_RX_LOG(ERR, "Rx mbuf alloc failed for " "port_id=%u, queue_id=%u", rxq->port_id, rxq->queue_id); rxq->rx_nb_avail = 0; -- 2.7.4