From patchwork Sat Sep 16 10:52:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112807 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1618182qgf; Sat, 16 Sep 2017 03:59:04 -0700 (PDT) X-Google-Smtp-Source: AOwi7QD0seGj06ujFyrbF7MrtweN+R3Gg5xWVfn803GEZmeI5DD5XIfDAtYx3rtlfiLXlEA0c6wr X-Received: by 10.28.16.16 with SMTP id 16mr5127349wmq.62.1505559544112; Sat, 16 Sep 2017 03:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505559544; cv=none; d=google.com; s=arc-20160816; b=zcZ8iq52bfvjmcGBtw7nlk/H3qcrwylVfKqYD5FyB0OUiNCQgDa3lvYVFbvDwpuRby kTUtCwpYw9SWS06o0GSTHINMSGpzIWHRTyXkcZeXe1u58QkAiQ6z2F75faH/TaV/ue5g pjjxDnGzClfMsiF/Ecta7+q90NT3hyPP+M3G1o09/p6ZKNMNgfgrc8pJd4MvvsJJU1po GuPUmC2E61Kz5okek+99nyPyKwl4pxed+Ess5HFTl94OVsInz+vNmjyWRHLom3cmbkzR tqru2Kt4rg+Ba26Q+UlPZQRwmGzOrO1lYMv6+h9SjPcQMz6An4y1ja1FjmArYTMXhXR2 1JNQ== 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=331+sn0HaRK8xRiugPX5eGVM5RFcM6a48phnF0lCEpE=; b=MNkuAFpBJW+jjkwHfXcZ0N+U0nDcPgEFrkY54OhqAUpxpiyUl4MbdmFjMsxGrFuhN2 NYK3eS49oenxyizIZKa2TNi9eh+6y9NjdTLho59uoPd/RIRl+0yCgAop3zJglnf5gffB eMdmQGicVRxtLPMFO62b8hSO3+P3B6qlGE2TFhYti6tZazDiJf+kIrEF0EmFpFG+gJpg sAmyya0TgoSiW8QA6ty/3gtEyWXQQ0Qcbuck3U8CYBq6mI7O12n2YOiQhMMtFf96W9eB ZGtSMtY1HWEDKYgNo0Btt0ijlo7lMM9+ipeHqS+MqG5MP74Bg2O0Uoxbs3bK9+NzSGsC bhtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 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 (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id l190si2472831wmd.122.2017.09.16.03.59.03; Sat, 16 Sep 2017 03:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 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 [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D19C91B247; Sat, 16 Sep 2017 12:54:14 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0074.outbound.protection.outlook.com [104.47.32.74]) by dpdk.org (Postfix) with ESMTP id 2C5F21B1A9 for ; Sat, 16 Sep 2017 12:53:58 +0200 (CEST) Received: from BN3PR03CA0058.namprd03.prod.outlook.com (10.167.1.146) by CY1PR0301MB0729.namprd03.prod.outlook.com (10.160.159.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Sat, 16 Sep 2017 10:53:55 +0000 Received: from BL2FFO11OLC005.protection.gbl (2a01:111:f400:7c09::109) by BN3PR03CA0058.outlook.office365.com (2a01:111:e400:7a4d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Sat, 16 Sep 2017 10:53:55 +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 BL2FFO11OLC005.mail.protection.outlook.com (10.173.160.91) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:54 +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 v8GAr6vC028328; Sat, 16 Sep 2017 03:53:52 -0700 From: Hemant Agrawal To: CC: , Date: Sat, 16 Sep 2017 16:22:39 +0530 Message-ID: <1505559161-29222-26-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> References: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131500328350873631; (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)(39860400002)(39380400002)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(8656003)(50466002)(53936002)(68736007)(48376002)(47776003)(54906002)(5003940100001)(85426001)(50986999)(81166006)(97736004)(189998001)(8676002)(81156014)(5660300001)(305945005)(8936002)(356003)(33646002)(86362001)(110136004)(104016004)(36756003)(50226002)(76176999)(16586007)(77096006)(106466001)(2906002)(6916009)(2351001)(6666003)(498600001)(2950100002)(4326008)(316002)(105606002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0729; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC005; 1:uQAWdC6NvLGf97p/jRQLO0hl3KDGREyjUJyTNWO0+6VMo3/RhOnp6psdrMnOMScnixmaPIGIDpRJUci8R4LtIVmCqQ3HYN/DH8Zp5s2BOrYecEvpqs9JAxVBkgAgC1gE MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fb91dfa1-cb29-4301-781f-08d4fcf139aa 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:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 3:PHhoiegKvya7SodQjhk3NJP/NIP9hKX+MWXc9GCEABphrDAmAR9k+utatzwki4iplrPYOmtyu40MSVRxZgV1XHT2mw479vqVU47RMFdjdD2UEt+ZoSXtpAKZ37R5F13PElXpC4AXjOIh4hCV2LlOSEZodDIEa8PdFwr3doCAdJH/eqfiEPLVNkTXwY9tE+SGqVsb0VMky+WtsI9OV5qGARMPNu9/zepRbdl3Ef9bUZKgPpilC+JnXXW2Yqw1614R6PWJZOJY7OHljhtsV1ZpKH77p6L7HL+Ok5frSHxISUfKXJ/zXjUP9j+kYho11okM2APkUd+9uSmQS3REJq2sMs00fYSqbeoNqOcKv++nnOU=; 25:svrCmxycwRRrJZ6re28GTiZtVyN4NztU8TaQbgn+7/WeBkazxe/8WkbcDjqZWEWcmmSjRfKmaK0tKsBFCyxSYRtCjOnsgR70WlqAAXMbazaCSIw/WN2uoOZZfgBVkmUiKn53UHbe43L2upHLuMyuGUtpA9RmwMh8OqTyn74vf5MqetodYpGAKvO2YpJfhxgd/hPHOQxi2n1h2KrshTZwe039+5qh4xwsguI1X43ZnnO/UDQVdlG3S+nY5JPaY+6j3PjClhZ3bBh5QypI3uPdeSvOY2c6VVsNoPNbVlEztfRKCkbVLY5h+6Zhehdgr9q/fQTl10HGyDImPQD6oyqfQA== X-MS-TrafficTypeDiagnostic: CY1PR0301MB0729: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 31:5gQV3jNQElFw4KGW5LvrHEDXg1w0Wr8mtQr2s90RmSGc3AwDdML0KjdMYpeLsgIlYQxYhK61WnAoaqc5jviruFh6toAgdwCVI2JYIFN0hoZS8Olym+j0iq4P7J9Y/KSDLmc6Coy0Jhe/06c2aX8SCQVDDH+815rhRR/nT4pxeRzqi5yQDLotp50rcvWxrEpZkLx0P8XzQLUyyvUhUBg/fM0lfVk9Na9j0jNWLuAUjXo=; 4:LPE+xJmky9FDYit6e8w6lgAJpGVaD3ISGo7L+UP8XxUZSGEmvPdmKoILOBoOnwSg+VjYcP970Q576wnkQ1snNgR6oPtWS6CiIGtf9QNqJWJD0Gj9/w0E3bFfwB81TBHikCWUGijKWTLVuQOM65H+iIiLa9cpSmRfsvQLf9SnRnHEsx77X/rTyfAM53QOLF6RhujIXxSu1T/L9KYgnrqHX+kVkk0c0OyQ0UlfrLKNltWqhulNlBH8kRmYXQPuiiWiWrZdnEwTS6vkaQaDYNfhy76XTQerYMoII2DJwup3/tc= X-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)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB0729; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB0729; X-Forefront-PRVS: 0432A04947 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0729; 23:wh8a3y45J9rQaIup2ZjUVSur6Zrp6vaL1fArG5q?= s332ntVjDhPnykeeznNsf6umgkrGjMxsS1Kwe8jTuLu/LRMaNIHcMAL564HJUsxu0/C0knBEd2FZ4J3aUjzsuDgL9qdZjheDdFj1XRIPBwAc7+gmpVlI+qyUK0fDjRI2eIQOXtxh54InOy3zbpZ9HGgy10Ou0FLPS+olit12IdVr2QfrEemYpZlSngPiK70OYXSJIKQzwoaxaSnAf7qDNXVLHVjTGFjPtu5NQHRW+teQck1rrOHLdLFAwwVqb5faKFocPst3Gnt21nZ8yvwkmVgYDY+NYdBE2cdoQt5FgcBzHA1zWjfv5YYX+1/n/p8JSwTHzLQFT6rA+ILTqXQT80llFs32DpPoYD4PaZ9SKXh/4M2qD+svVGdqsTH5p1fTmbNvpEPsJ2STK+9EEfYnK9qEd41CyPjCbikAW44cuQq5S7Stiq/tOBSg7iEjkSR/0hMQKGGryhr69VEb2EFhG+xmEjV04hDlrYYkBa2EfFfP9ohZaeTuWvLnvb2FSizk4OI8yvmbtOtsJ9QLYT8It1yEscbPs/Rl0DXzqVjRhuJtXh/M2SxYeG/a8NwRyJXUOhe4XLkC8b78kIeICJmXxCQfdzf1c7SfN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q+qqxopU3yNBA7kktM9kRevQgHS9xufSs=; 24:IrEI6TDGz1U5JaMO/2ApZyDUxWelwuLpEgIQadfka9BWiPzPh/eaTbue8kTTbZ5FMQeiZ88yaf3DbQlQCDE98D09Mfd4Khce7ZoBVpMbsSo=; 7:QcruwLx1O8Km/Ers8BD37AGN3wB+e9nLGMhwahmxKQnLYp8Ak2ByHHXCAiLKIQkUMAuMa5NLVqu7+rrvYu3wjf10eJTOYxsyczbozvM6++3o9+3fCO3NvlQf9C+5SCKjM7ClLe8OC1cqozeS91Xr5kyeO6m/bWd97eLCS6QM7MdWYcJ58vVHPSMaFeDGlQfonMaGeKmynAd4TEYB44STENpfax+mNT5APkTbMh1C15s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2017 10:53:54.9157 (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: CY1PR0301MB0729 Subject: [dpdk-dev] [PATCH v3 25/27] 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 7756c4e..39c32b3 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; }