From patchwork Fri Sep 8 08:45:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112051 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1249582ybm; Fri, 8 Sep 2017 01:52:28 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7T38hYVJ8NQtqYwU0C2W9AjPX8Fh+m7dKb1aLwmivIYBVlJS72NmWVc65vrkx+cx9f9+Rh X-Received: by 10.223.128.202 with SMTP id 68mr1384326wrl.308.1504860748487; Fri, 08 Sep 2017 01:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860748; cv=none; d=google.com; s=arc-20160816; b=e+1F59XASlKoIA+6FQ8Is1qzbWQlXBJC3++VldvH6TXX6BZHam0eMujijQpfQ3Mitl No6DeBvE/oRuU5AXD9SHbaurBLxrehC/kE6KBEXL8H8CdURpWaEZeqb+iX8Vo//Mr/sg RpeLzJobdfOPWdi89cHFg+GsZV2Mdy/g4kFU6nvXossguqUXqvdj+2kLchkqe2trOnwJ /omJJB2+dHAD0k7uIqIlqXQcTgzCwIQbX9MAmdoirdPZPyvKLOk7WTy/0RgokyIxfNB+ 3FDcI3q3am5BzKqXKU0twx9jnX8pLbaUZmP8mslVel2C+Gg+Idm+LO163Zu4TkJlt1gW GdKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=gYqKCPb4kfKw6Bwi4FXrthvdJ+R6iB3i4GKKv14g9sU=; b=A20eBPqpCe14TzErwny96BY82zXVLXITAK2SDFwfhPUHh1xeNv+OZ6+j8bwceaFV6C wVlsxQ+0srgcB/AAvjwEwbJVzAaHS6e3o6nBlsVQd45JZQVFU7dLPk2u2nCaQ0gRumWW T+fvf3xkivAgAUXniMZnMn95utkOXeEo5LOdsJEt/niwyRw4nQqwwMT9bvZXb1X/4IXc oSgGEQ96In2AQHkdJPTy6TClRaRe6UjCmN7Rpm2UlMTah3LlZULAqNekfkrTOv2qmxLO 2alGJRxcBYt2RjGRBkXEZOef9ItMf8IDmFJv0263d1KIxn725NvjUMZ+m1oBBOI2XlrO vCSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id x7si1150163wrb.444.2017.09.08.01.52.28; Fri, 08 Sep 2017 01:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A9B2C19A76; Fri, 8 Sep 2017 10:46:50 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0085.outbound.protection.outlook.com [104.47.36.85]) by dpdk.org (Postfix) with ESMTP id BBB34199C0 for ; Fri, 8 Sep 2017 10:46:47 +0200 (CEST) Received: from BN6PR03CA0069.namprd03.prod.outlook.com (10.173.137.31) by DM5PR03MB3322.namprd03.prod.outlook.com (10.174.241.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Fri, 8 Sep 2017 08:46:46 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::124) by BN6PR03CA0069.outlook.office365.com (2603:10b6:404:4c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Fri, 8 Sep 2017 08:46:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 8 Sep 2017 08:46:45 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v888jmp1023063; Fri, 8 Sep 2017 01:46:43 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 8 Sep 2017 14:15:26 +0530 Message-ID: <1504860327-18451-30-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493340054375047; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(5660300001)(54906002)(4326008)(110136004)(50226002)(2950100002)(6916009)(104016004)(8656003)(498600001)(81166006)(8936002)(8676002)(5003940100001)(81156014)(77096006)(189998001)(2906002)(6666003)(53936002)(97736004)(68736007)(50466002)(76176999)(105606002)(47776003)(106466001)(50986999)(85426001)(48376002)(33646002)(2351001)(356003)(305945005)(86362001)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3322; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:FHXMkavKHpJ2IMYZBWz8ikXAuJgzM3Lkn/r985lfKbNCRE1l6LZCePa+Rpns3Jx03/2EWAANhrOyLiHvcC2ZvZd7oATReBQgYyUJx0/h6fYF4j5XBrjGNxp2Q9UI3lwZ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 30a1cdd1-d3e7-4916-e92b-08d4f69622b9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB3322; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3322; 3:HVbv+xUo70O+oeruYM+F8inZz2NTu/F6Ek8gMsDI5lnrJ/rUX3dc4E9yvvOJYwQ3WeahP323uRmpWcjKaQURtwVrUhwLLiXJteXk40C2WECw8Zlwpn6D02XQTGW2S6MG4MczjxGltsG6tbUNGzRVRQJZB7y2lFERDdIki3UNR4QZiahO+hMyBlRzqK2vr66FDBSAfC8IxBhhiMnKNLJTghq98r55XbW2m1J4yO4fwiEN2zRbQNuOCs4k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exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123556025)(20161123561025)(20161123559100)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB3322; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB3322; X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3322; 23:5GaxtPINH4UoshReJa7pYCgPz9HlgHJ1UycZYKOLX?= a7NZRzR+RoS1GUHuUUn0lAvGcc5yp+KyszD/XjpXHGtlK9EAfGrljHlMBNl6Z40ZN1j/DtTTCO8nGZt4CjTZNF1OlCmWC6vgQQI82naCWhldxxoAfqrHJ1jaFy1ow97LbNENMUMWaG6WJYeCzPhfgQr4OJ7cN3DTn7aWmHOo6kESc8tq5t99/CPEkzNjRdFlu4INWXEB3vUMY68/hwW4iFejPDNa760zVhEiOKvILoPB0UJ5eXjcBjMMvb+pQ/dHI0VLh/wrcoL0LuikXknO5xzOsiahbUC8dqp6bH4/TNVrlKJFOINeQDYnHhjMg8fMwLKHrYwcttI1QAp7YDeR85GpDUI9wsUKwy9KdNFZLwwgDuGdszRVu39UYsvBB2gEcSV4sbidab70mZWdUwj1lgLwkIHLhDCBmir4BPqx/Ig1yfvVp+m2bRRheLX0eKFFmc6o5T48l8nqwKlMTjU3v3OeBYb96n+WNZGJOGQH9KS2R4wQZrqph8ZmUUYXmDKunFeXgHeTjaThMTRedLfuol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zM8I2jCfnvA+NN4GXzeQ==; 24:4DeRHV08bbGTdiINqH7/j/QI2q4kMK92SLFYHdmG2bjY7CG5za17kqg67kba5FLjT/K8AVe+pKQExC1f3/XCQfJ7+nq7Ut8HkMM7qx1Qgek=; 7:KZfboLQd3ABL4OgIra++9pJQrBcJoW74tj1U8FLhOPkpQ4NTEMkcCLlLTZNvuxeB9aIQutu72LHpffPLKsdrNPoKaTcGm7y+d9j/1bNWpnYK6VD9VLnb2JX2VW6TU/BjjnMHH7zGFwsjPJxAwNZtousB5Ummia95kS9M70VBxaOi9Rwhpsyr/79jdeMPQ7rRZd5c5AhdeW+1mnapRGC/qMrIJMx9vyAycTmPgCAESqo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:46:45.2659 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB3322 Subject: [dpdk-dev] [PATCH v2 29/30] net/dpaa2: improve debug messaging 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" Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 4e833db..333e4e6 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -426,8 +426,8 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, PMD_INIT_FUNC_TRACE(); - PMD_INIT_LOG(DEBUG, "dev =%p, queue =%d, pool = %p, conf =%p", - dev, rx_queue_id, mb_pool, rx_conf); + PMD_DRV_LOG(DEBUG, "dev =%p, queue =%d, pool = %p, conf =%p", + dev, rx_queue_id, mb_pool, rx_conf); if (!priv->bp_list || priv->bp_list->mp != mb_pool) { bpid = mempool_to_bpid(mb_pool); @@ -476,8 +476,8 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, taildrop.threshold = CONG_THRESHOLD_RX_Q; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; taildrop.oal = CONG_RX_OAL; - PMD_INIT_LOG(DEBUG, "Enabling Early Drop on queue = %d", - rx_queue_id); + PMD_DRV_LOG(DEBUG, "Enabling Early Drop on queue = %d", + rx_queue_id); ret = dpni_set_taildrop(dpni, CMD_PRI_LOW, priv->token, DPNI_CP_QUEUE, DPNI_QUEUE_RX, dpaa2_q->tc_index, flow_id, &taildrop); @@ -983,7 +983,7 @@ dpaa2_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu) PMD_DRV_LOG(ERR, "setting the max frame length failed"); return -1; } - PMD_DRV_LOG(INFO, "MTU is configured %d for the device\n", mtu); + PMD_DRV_LOG(INFO, "MTU is configured %d for the device", mtu); return 0; } @@ -1738,7 +1738,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) priv->nb_tx_queues = attr.num_tx_tcs; PMD_DRV_LOG(DEBUG, "RX-TC= %d, nb_rx_queues= %d, nb_tx_queues=%d", - priv->num_tc, priv->nb_rx_queues, priv->nb_tx_queues); + priv->num_rx_tc, priv->nb_rx_queues, priv->nb_tx_queues); priv->hw = dpni_dev; priv->hw_id = hw_id; @@ -1805,6 +1805,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) eth_dev->tx_pkt_burst = dpaa2_dev_tx; rte_fslmc_vfio_dmamap(); + RTE_LOG(INFO, PMD, "%s: netdev created\n", eth_dev->data->name); return 0; init_err: dpaa2_dev_uninit(eth_dev); @@ -1865,6 +1866,7 @@ dpaa2_dev_uninit(struct rte_eth_dev *eth_dev) eth_dev->rx_pkt_burst = NULL; eth_dev->tx_pkt_burst = NULL; + RTE_LOG(INFO, PMD, "%s: netdev created\n", eth_dev->data->name); return 0; }