From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 8A71B1B17E for ; Sat, 13 Oct 2018 01:43:04 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id p24-v6so6910014pff.10 for ; Fri, 12 Oct 2018 16:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RjRnEkNk6CC/EUTVBxwdJeLEdKN48L6xVBkeJioxMGw=; b=dnkoM3lt10TOumypvZ0Utnc/o+XLbwJ83mCVlxFYbX97pw484ns268+SXLmJqTshne Db0HA4J9rybXPY99ldqb+wxTOiQS71kng8rMH9w6Aw0PBkXox2DSnuXj6AhgOeN3G7kH dcFVhAGj5ID49WxRODUaoHsTC/PNqnbPam6B/jewL8vk9+gPzBpOP2akc74qbqB+TBh9 l/Y454orIaTXxyYQW88ibe07DIxgrklANSXOrFPVaQvyxseTGiKb8Y/oZ47iapLf/59F anaQnwqZiKnkX0hHaWP/S+l34SRVDARYMnpIDkn1ISnl4Z7SC7h2VBmNdneiWxMsRwK6 qzug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RjRnEkNk6CC/EUTVBxwdJeLEdKN48L6xVBkeJioxMGw=; b=mr07om8X5tLWChdtJV3mvrMSARyrKt/0pUZl9WbofAO/N2X7Mn8b2GVU0nNuMRWc7n fz0pvXrZ1BDTxwlNWwEKgc45kbeSB5Uv0aNArl/FA8fToTyue4E/D9aDdffjXfDbigMQ Xrote/D6naPJAXWhpEYVgYNUcJBbnyxgrx+Jj3SVNIIx4vGx/9CfcxV79BCpa+YImBiG GHTZHhrW4IklRjZPINZGuH0aJ7+XL0obxWBVSbHejKuie62RQOGbuCGEa1MmVxC+QBwC ioEcjzueM6zaOKMOmysbraCuudpxy9PiiozRkd20O2uK0LT+X99IwSyQYiW7sdVTYcfn 5pxA== X-Gm-Message-State: ABuFfojEE5QWIkBmL6+vhQLQp9maI64ovExikbvoEpPYZlgNbQpRTDia fdWEp29NwC1hqOAyKFGWjl6BN5AppK8= X-Google-Smtp-Source: ACcGV6323OExwnovEtq3n0rql0hgk4SWyi6xCIkw+qOQTHs2bsq1Ylp4x3+CZiYAxgHWh0Ejt2F6NQ== X-Received: by 2002:a63:ea07:: with SMTP id c7-v6mr6964926pgi.361.1539387783232; Fri, 12 Oct 2018 16:43:03 -0700 (PDT) Received: from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q76-v6sm7099938pfa.18.2018.10.12.16.43.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 16:43:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 12 Oct 2018 16:42:52 -0700 Message-Id: <20181012234252.29049-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181012234252.29049-1-stephen@networkplumber.org> References: <20181012234252.29049-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 3/3] qede: remove #ifdef for INIT_DEBUG 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: Fri, 12 Oct 2018 23:43:05 -0000 Now that logging of initialization is controlled by dynamic debug level, remove the #ifdef for RTE_LIBRTE_QEDE_DEBUG_INIT since that config option does not exist in common_base and is not documented. Signed-off-by: Stephen Hemminger --- drivers/net/qede/qede_ethdev.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 18d244a9367c..5745832b98a3 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -1380,14 +1380,11 @@ qede_link_update(struct rte_eth_dev *eth_dev, __rte_unused int wait_to_complete) static void qede_promiscuous_enable(struct rte_eth_dev *eth_dev) { -#ifdef RTE_LIBRTE_QEDE_DEBUG_INIT struct qede_dev *qdev = eth_dev->data->dev_private; struct ecore_dev *edev = &qdev->edev; + enum qed_filter_rx_mode_type type = QED_FILTER_RX_MODE_TYPE_PROMISC; PMD_INIT_FUNC_TRACE(edev); -#endif - - enum qed_filter_rx_mode_type type = QED_FILTER_RX_MODE_TYPE_PROMISC; if (rte_eth_allmulticast_get(eth_dev->data->port_id) == 1) type |= QED_FILTER_RX_MODE_TYPE_MULTI_PROMISC; @@ -1397,12 +1394,10 @@ static void qede_promiscuous_enable(struct rte_eth_dev *eth_dev) static void qede_promiscuous_disable(struct rte_eth_dev *eth_dev) { -#ifdef RTE_LIBRTE_QEDE_DEBUG_INIT struct qede_dev *qdev = eth_dev->data->dev_private; struct ecore_dev *edev = &qdev->edev; PMD_INIT_FUNC_TRACE(edev); -#endif if (rte_eth_allmulticast_get(eth_dev->data->port_id) == 1) qed_configure_filter_rx_mode(eth_dev, @@ -2648,12 +2643,10 @@ static int qede_eth_dev_init(struct rte_eth_dev *eth_dev) static int qede_dev_common_uninit(struct rte_eth_dev *eth_dev) { -#ifdef RTE_LIBRTE_QEDE_DEBUG_INIT struct qede_dev *qdev = eth_dev->data->dev_private; struct ecore_dev *edev = &qdev->edev; PMD_INIT_FUNC_TRACE(edev); -#endif /* only uninitialize in the primary process */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) -- 2.19.1