From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12EB9A0551; Fri, 26 Aug 2022 08:04:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 079BE427F6; Fri, 26 Aug 2022 08:04:21 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2095.outbound.protection.outlook.com [40.107.244.95]) by mails.dpdk.org (Postfix) with ESMTP id 4DF3940693 for ; Fri, 26 Aug 2022 08:04:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZiBtpWD13dXgkg2ReAl6Va0OxxmNrH/vn5xjI5+R2Zbn04L8JKyhqxB53Zfh2eCTFmtpSzqxpFL0hxTyYdVx/ygzXNAISjKMhqwueVFqYUIGEOH7GwpWje00+zE4rP6iycHKWU8yh3Khgh6QSH6Wkfg5z74gWhhAPo8D3e4liX3+snuOCTsQU+5/73yE+R4QpejpkhATtLQwAVnCJLHUQThiUFvIZvIv/sZOy24/vai69g70VRl27ugFo71tre9GeE//kFIFN70Xv/wOgoGrnl2credJWM/8jJjQiKF+CReEIw3jPUQsnpWGy948Vf0sPTDGqbjkqoSIyMEH/ND5xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4gN914LlKg3JY7NJNDKZHNVsFbI+y3l5XBvr9POVFFg=; b=bFi2nnV/wLTo5mX6B0OgCfRoPggZlcVcVxv43kuyNw9VjqW2rVWxdA3M8ExXW1wb95ny67MeHC7QxZYBJ/6pHroqUb6TYLPxSLvjSOqhPAwlvSpzFW/XnBRf4CkVnjb8+3SlxKbsD1ZrSm4mOJy4zfXuOnu2JDFmnTL47XClOp70SYIe+S/fUf76aPax12EoqMsda7k3C/sGuPqY4LLbMDIypsZlF/87nT1VhJUs/EyCqagU+a1XzOXFZaP6szsVpVDoTA0GQMrD3ko9pEc+uJP3v5o/Y0ASQ6J/83csLnuQ6GoV37yp8cdZFNxFSizazNzkz1XSCGRFZalur7YsbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4gN914LlKg3JY7NJNDKZHNVsFbI+y3l5XBvr9POVFFg=; b=XuDEeHUwjVh2VmDR3x5NReVOBeObk8Ii9sqq0gKWS9bwuXMIDPgkA3MJeqz3oGJvtqcOsNrDbvPNaUfH+dTvqAHBOp3PkUQ9IP6iTBGphSb/8PFhGC1MLMGQH//tGCdfl8t9T6UOoDw1T4Vz8YqUvkbh0lesXkIVu/fy1af073s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CO1PR13MB4935.namprd13.prod.outlook.com (2603:10b6:303:d5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.3; Fri, 26 Aug 2022 06:04:17 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431%6]) with mapi id 15.20.5588.003; Fri, 26 Aug 2022 06:04:17 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Long Wu Subject: [PATCH 2/2] net/nfp: use dpdk debug macro to control nfp Rx/Tx log print Date: Fri, 26 Aug 2022 14:03:06 +0800 Message-Id: <1661493786-25406-3-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1661493786-25406-1-git-send-email-chaoyong.he@corigine.com> References: <1661493786-25406-1-git-send-email-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY3PR10CA0012.namprd10.prod.outlook.com (2603:10b6:a03:255::17) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 719d869d-4599-49d0-4232-08da8728cef4 X-MS-TrafficTypeDiagnostic: CO1PR13MB4935:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tDzlYqZm66hsJ8H/03rGgdc1VDZ2Eo3roFtSdExWFWsXldykDj7/1rhcp0IZs42/YO3AepiEhG/hIJ7M9ZzSS5NP4NgnV1IiYfdw+3OPbgR6NWtpU0lQRnxbkPS6sYW5qRgtek9xFFQrNGo1fkFTtvakEROdEGVtjo1dObmDLlxHxiORQEZgdl06TR/M/CkVd1iqEQg6bXJLgwHnF9BnHxUpmpncx8JMyaZkLB8Qlsugqazj2ZKTHoEjTLIYucf7l84IlQslJ6/Wdh6Yvq9JD2/CEC3LfgxF+O9X5oeXKpe5IZoM3UdwYqhPFYuBbE7NVh7mD7dHoYJDkBPtKmwiwXqGfKfwEUHGjAUdwsQCPdENb9QEvh15D5NzQRwOQe3URfujUbCIaVCvDJePKkKAZ/qYoW0hMgItdl+rMuGREZvXAYeZAMv9MpqcuzbfMiunxOUqeI0WkwXod9IrEXyJw6B4tuFDRfOGnJa8sglDydoUIRHYHChyq8ddDM9dFzCfzIu9WbwVndQ5UJzQwCpUVF9K6Qz/dX1QtMxXydIvZIXwNsYjxt7RL5iTKZzAqPoLqipfjPpUHJ7joOPXq+h9qP6CY96YWklLPAwWeEwyvAD4o2wX+vFsAaaxo+WXdKiXjRJMslIYbqLsRdFcAZtR8fKyJSvbU55yDn7dNPFuxq9ZCSPZ3syssNCfXOeBrcEtpQJUug6Ivo26w/JU91JLl4RuGcH1NsALdrrewg/VZhnPWwx96gUTve2AY5xL7iZu0t4F6XFWMImcGQcZkOYicVFpyQ2N9ZjwPO1kg2JB3WLoOqt5IXA7cyGfrGCRLmTF X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(396003)(366004)(136003)(39840400004)(346002)(38350700002)(107886003)(38100700002)(2616005)(2906002)(52116002)(26005)(6506007)(6512007)(86362001)(83380400001)(186003)(8936002)(36756003)(66476007)(4326008)(6486002)(8676002)(66556008)(478600001)(66946007)(6666004)(44832011)(41300700001)(316002)(5660300002)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDRDaGM3U2VkZW50WDZ0QzBFOVlITVZaTWZFQWFZN1IwaVFpRVA1NjJoeFVZ?= =?utf-8?B?RW54b3M4aU9KRVdUaXZjWU1ZVUZFTkhPQXN4dmtWOGFqY2NKNGZ2TW9Hc0Ri?= =?utf-8?B?YW5rNmJWYjcwaVBWVk1oTzZGbGtWUmduRXYyNll2cU81bjJOL1Y0Sml3NkpT?= =?utf-8?B?bUtOTllTK2M5TTJNcWt1TzV2aHhiK1FmN1pndTRjUmxjM3AxLzhVSWxUUUhF?= =?utf-8?B?WnFuQ2tqVU9PNHJHSyt6ZmJqV1JIY081NXhjTDY4YnIvMy9N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HNldkdmbmJIOTY5cVpXTVpMR3cvS1VnYTJjTDl6b1Jp?= =?utf-8?B?U1VOTzl2RUYrM3BzRGp3VTdKYk54alkvZFpkRk9jaFAvU0tVazVPQXE3Wmcy?= =?utf-8?B?bmc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 719d869d-4599-49d0-4232-08da8728cef4 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2022 06:04:16.9870 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: R0HlpD+J6cnPV2buA5IpViS6BpLHkrG09Ghazqp4zvLz0V3jDAJ3JnKclDcJ2TpdXruOb+klVq9KCFhxzv89ksxbbcJonV9u3lWG0zmcNSs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4935 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Long Wu Nfp log print was controlled by nfp's own macro before. This commit changes to use dpdk debug rx/tx macro to control it. Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_logs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_logs.h b/drivers/net/nfp/nfp_logs.h index e22df70..5da384e 100644 --- a/drivers/net/nfp/nfp_logs.h +++ b/drivers/net/nfp/nfp_logs.h @@ -14,14 +14,14 @@ "%s(): " fmt "\n", __func__, ## args) #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_RX +#ifdef RTE_ETHDEV_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ RTE_LOG(level, PMD, "%s() rx: " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while (0) #endif -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_TX +#ifdef RTE_ETHDEV_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ RTE_LOG(level, PMD, "%s() tx: " fmt "\n", __func__, ## args) #define ASSERT(x) if (!(x)) rte_panic("NFP_NET: x") -- 1.8.3.1