From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0045.outbound.protection.outlook.com [104.47.41.45]) by dpdk.org (Postfix) with ESMTP id D05ED69EC for ; Fri, 17 Mar 2017 14:09:06 +0100 (CET) Received: from BN3PR0301CA0038.namprd03.prod.outlook.com (10.160.180.176) by BLUPR03MB184.namprd03.prod.outlook.com (10.255.212.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.17; Fri, 17 Mar 2017 13:09:05 +0000 Received: from BN1BFFO11FD028.protection.gbl (2a01:111:f400:7c10::1:155) by BN3PR0301CA0038.outlook.office365.com (2a01:111:e400:4000::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.11 via Frontend Transport; Fri, 17 Mar 2017 13:09:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.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 BN1BFFO11FD028.mail.protection.outlook.com (10.58.144.91) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 17 Mar 2017 13:09:04 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2HD8peP021077; Fri, 17 Mar 2017 06:09:01 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 17 Mar 2017 18:38:25 +0530 Message-ID: <1489756124-10805-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489756124-10805-1-git-send-email-hemant.agrawal@nxp.com> References: <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> <1489756124-10805-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131342297449066108; (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)(39450400003)(39840400002)(39410400002)(39400400002)(39860400002)(39380400002)(39850400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(189998001)(81166006)(356003)(2950100002)(47776003)(48376002)(6666003)(6916009)(50466002)(104016004)(2351001)(8936002)(36756003)(81156014)(105606002)(50226002)(8676002)(54906002)(106466001)(8656002)(305945005)(5003940100001)(86362001)(2906002)(5660300001)(85426001)(77096006)(110136004)(38730400002)(33646002)(4326008)(76176999)(53936002)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB184; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD028; 1:FiBFFBjVkXRICRnMBisA8nc1w82zlM+ayjm6a6xICoP6lLen/Reap+/2u+3VoZMyirLFQo7Gm3IXhwxmxyOCGEEaHyuQbyMBHrrYfbIo/0Z1CEnrWjTSgaUE7t3q+ZHdpBk9KdExvwyJWuJVjkAenkD2JOXp55A7Evb+o+y10WGYMkWdABwQSfSTnb47cEBq849DdVeMEsPjGY40Xq5Lcpv3KhGh/bUblRhL4GSWsuH84WBD0ffKgu42TPw2Ms9zWX2oVpz69FsPentvtVueHLgLm0JQVXr+bxMG/N7ivjsN+zJzLhuiT+LfTQuu3XDScNyGZoOMgxX+KkHAuTlCSd8UM7aC/szlHS8/k2j2K9oI54HxXMr4Ad93zAwRk1UvYTTeUr7Qatwj8RVhPfBbDGxo4JWyw5I4Y+7k9O6aFYbJDghTzRhPHOeOt6u2H24V1Xb1YJ96xIyHAhlJVnoBrKkkGa60bsOfqS6/rAdiGzQyYWYNsNZ5GDQQOc6w5ew/TyX+zdCyfxj3TTefGvFcSAIEnw5tekmqD19OuZ5+2SPAEKGWA/MrkrSEelCQZXgyaSGQV9gHaFTQSTTu7AXb2iglRMXHjzVTtUBi9oG+YgRqiIA5NPkuVcf54lV0TQBZsTmLyeRFYSOs77qUKG6LxQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8c643cab-d13a-4807-0d1b-08d46d36c9e4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BLUPR03MB184; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB184; 3:yrVAq3fPQQ1Chpo6MpNj3XykxcHYwemB+HDoc2den1lf7ywWzlGBEnIlJr1GafSIaW7HxlFhql+nS8Dir+8rUWJ+BiVaCWiNVvBVfpDKd6WOmgEG/xrMZkFNrxRVdvXZr0hSz+phBmMUPq/nL0NgpElyTIRjM8vRD/yFs1G8JXbFnUkYz3KB4FEKGHN2b5n9EGtCiQRkzVi+Nfs8bPqL4U3FMJTLJPkF2tqMxdHham2PPVkGXj9W8/Pl2ufj6z8vfJPdc9uKrBtRGVGD6SE7dAJ8UEelgm3IAnz6/reKWshpntIM9G0SnLxvY7tJBDOcLSPHlljOC1v59e/tneaGTT5M1eOsTcd65CauqWc3Wjjag6pcwMB8ydO9etWxWyyv; 25:fFCXyiKdCpss5qbXJAbuoLmnLQgs3wEWfbiRJA+9EEb7EaKU42Eov563IKtiaIFXf98ZTXhbXAAqsER0MIKBQquILy20Q30wqNDh8EXCOpfn9qsdgr2ucIUPLEtjQD471JDelE1xDjXy6/c1LEzNkdpuHXpui5/jnnZ1/St0C8XFkyvY3fuZQTDxXnyKYX5OfgacKg/HPm+TDTcwlo0BelqF0782tCnNzUro4shMoFuqoUmAJN/8yIRR4j45HvJZfO2Mrljd8bZu9DHB7mW5pvU78FcyY0jb2ggrmNZnH0MjtOlIMlG7KCuNlYuLBkpIHIgnWR5z7Z+sEV68kemQXUmqBHsIYStz7ryMzMs2T4+yPMLLuH1sBsOGFIdZGxJBT0mLHXvQIIk4nk29wAhD6/F5hapwQxhG/+7Iz2rYW1RUO67gI541wdPMdoWbpSl7tLzA//ZLnKtS580wuwxueQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB184; 31:n5ENWMrDq8OsCao3lg+oo1laSFXDnUtvjnVP88raKhIzHyFTiIljryadepjrsrWoTCIOL4bqjTyjNGIyE4I6ZDlqxZol4twfrOmukScpWBn+NE4APIqT6NI9eiaAeKfTGTOODgPENcd6/juHOk5zhzoxdW91gwEELKvX23/6AU62rD+EpWggBTKqS06eMtSnG12NtojRU9zfOPW/o/7HrIqNy4kTc/KmDTRfRYDTiQecLaY226LGsqpoBubDxqJxRniNUlumtpHioGsOsSCmWkHCs63anaQ/3ZCKH+S3g+k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(13023025)(13024025)(13018025)(13017025)(13015025)(8121501046)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123565025)(20161123563025)(20161123561025)(20161123556025); SRVR:BLUPR03MB184; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB184; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB184; 4:ZtWGh6xhOfvgWJOz2KiHHOqKFRZ6wISG2qNWx2wgZEynUlTO2sTBqvU9FJNcH7EVzsn83oo17S7Rcfo8rGR/hzVx5CJRH2qULqxyL8pwaB43Z16YAe5OSetSxxWFFhwqCtyR2m9GGaAMGxKCvG4idY6FAT3RcE+EC5gT5JLPV/6TQSUNOKQ1ePkKQm+xEN9bv4r5wd+3hSguUMS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zE+VYHCdbqpLl/XdyEo0vL8MGlHTZ5PNae70Xauc78kouzN?= =?us-ascii?Q?1aVNcue6jFWziIL5hT3mrWa1tkul+pp/Nguf46t9iqZjiDz1J0a+jc1Q/ojv?= =?us-ascii?Q?6DGpdquAAEC1DGftzNE4flko9UOta+NvuvBVf3104q1Ow+zSzzmarZtXqOr6?= =?us-ascii?Q?yJfl0uOkDxbY0RhVkGyjaSEUO+w/i8H28dYFPkmLwkOUZJ/nIoOHKjKAALip?= =?us-ascii?Q?ysDE8thdd1rLCo59N618sVzzZOi0UHMVaFs1x09cyKdjl2n5aM/rm8ZeEya9?= =?us-ascii?Q?AyZjoRwn5lRIjvW8x4BlccAiW6BWjoqOwLMNgKw3DizQX2wieSDhOWDMs43w?= =?us-ascii?Q?GfGeqER/VSlIG9eE8YaGr4th0ogl7V/NovZGdcIGrY1HppM1JiC4uO+mZ9k8?= =?us-ascii?Q?V/u8wAufieeXY3gU0KE8NKRIi6O9AqfAChXln19zNcRT1XZrP69u4twGE15o?= =?us-ascii?Q?jpLTUwSthtBG9jnrEnehkoo8Ad8d73/dJAf4inZi2ItQT6AnbH573SFYPHKs?= =?us-ascii?Q?7s0U1iVy6YMFa9tt2njcgq+T9GYfaAUwf9kAlPY+fPuckwcjWWXZ00ESBW9R?= =?us-ascii?Q?/OP4CYhol/5KC0tAUBW6K64rs4OlZibS7p8o2/mCHy2B/+BGvYe9hmC6hile?= =?us-ascii?Q?5q6Glvdabrsm8Mbr1pc+P1c+d2msOMAR9x5oEv3ZTLKt5oPkq+pwrvFtgIQw?= =?us-ascii?Q?S8JwNgIGifzVgAE8nDjx9ZyRF65+D4C8bkBAoLCYjhjfFffXT7i7A9FNZlhk?= =?us-ascii?Q?dsLu7CjNdgEfIMMzX/49jYFyHXCEpfu0emLcsZXtJWoUAPlnmeJjRtekt27y?= =?us-ascii?Q?OPuOg+64YGFqvGkwNsY6+ncF6cYrca0aU08atmSLubl0kkeoF9e859pg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB184; 6:vt7R81n06G8vyI7U73ISMdOb/rDmlK+HLLyo6gMlM0A1en4xsImFArMLlrWcoOZ1XpbS9fuLpKhvNaSTwoxQM07KF+oGgrvMs/TnrrqqHBuQmglIBKEwypt5Q8QcpBdiPNZgvayH/kNY1/BKpLf6wZ0HmWF2otvFlt4UmSAbggleNvQ4ldfygjGroUDeeHRK1lDjWS7ODit1qgLdMSMFnAKoEBpfDNKTdF+z62GxRA2t7bhxWZ5fWNgWkp2pxIP2zIekZrH03O7QgMq7xncoEvdwu2Zpr/tNLk4TJimUJvLZtvwLouZ+6it1Nga9YmVXl6CE/biO/pZOGgoayIEsf5SvJLOSQKqrDSkjeKhUjS7SgN0yFLVkA+PDEI8wufnT4xJUQ1yykQe4lAAHyBr6fzV2TDMI4t/hlK12d62crhI=; 5:sR1JwRn9MjO+8sYk99j7/HLXHJeH6B9k/lbP+KIkx9E99gFbRHuSMgOAdrdwQR6qJkedqfZhYQFJ3hi45iGUWraAIw7kVycVWG5l2aJJk7uhoWS08Sn4F2sOK8KqdF5Oty1NencZPR0/6e7xsB1FQ0bW7xPPSpj7xIYL9zzl7u2kk3OCvey0lsj0zHQ7T3y2; 24:WWydwL8AdBa9nXZfcIaRsIorOxF4SDLieF4wk7eCd4qvvdL27mS10+reMkCyzxPdRWVOOLXa5imNULD3haZAlWfE3dALz8Two7ojOQkEmDU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB184; 7:7CJ3KbGElP3EXFoNp0oFU32oZUleDCWV5+KKadPG7Qyz6pBdDeoKw0eVAGl2D3CK66vgUxvo5AZPfoTyNHV4IXYkeSvGB3jhv9Km9CUGuXwpfIc2L/DFLeirNnLZtocdFoFxX/5PVLS/zfh9VDxgRm14hlP1A+4Mce/fCDbbMGLrZ+l4YnI8aCVQV/eZ6pglNrQiwuPeFWl1K7CXxwEvuuYU0JfyldksfhC4jz2Z5+xjRonc7ePwJV1H83Zd4fcEfl0CZIWXJHyL8dw66cwT5sqxbDuULn5K/qrK69xQVqKmTDhKMoXbqE7wx1NIOIXTaRNoKPQdzG9uh3lvqRCYhA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2017 13:09:04.6882 (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: BLUPR03MB184 Subject: [dpdk-dev] [PATCH v9 03/22] net/dpaa2: add debug log support 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, 17 Mar 2017 13:09:07 -0000 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/Makefile | 5 +++++ drivers/net/dpaa2/dpaa2_ethdev.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile index 4f5dbf7..3e3c8d1 100644 --- a/drivers/net/dpaa2/Makefile +++ b/drivers/net/dpaa2/Makefile @@ -36,8 +36,13 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_dpaa2.a +ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y) +CFLAGS += -O0 -g +CFLAGS += "-Wno-error" +else CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +endif CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 79ee08d..c2dffbb 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -45,6 +45,7 @@ #include #include +#include #include #include "dpaa2_ethdev.h" @@ -53,6 +54,8 @@ static int dpaa2_dev_init(struct rte_eth_dev *eth_dev) { + PMD_INIT_FUNC_TRACE(); + /* For secondary processes, the primary has done all the work */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; @@ -65,6 +68,8 @@ static int dpaa2_dev_uninit(struct rte_eth_dev *eth_dev __rte_unused) { + PMD_INIT_FUNC_TRACE(); + if (rte_eal_process_type() != RTE_PROC_PRIMARY) return -EPERM; @@ -92,8 +97,8 @@ sizeof(struct dpaa2_dev_priv), RTE_CACHE_LINE_SIZE); if (eth_dev->data->dev_private == NULL) { - RTE_LOG(CRIT, PMD, "Cannot allocate memzone for" - " private port data\n"); + PMD_INIT_LOG(CRIT, "Cannot allocate memzone for" + " private port data\n"); rte_eth_dev_release_port(eth_dev); return -ENOMEM; } -- 1.9.1