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 123A441CB7; Fri, 17 Feb 2023 03:46:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7ACD410F6; Fri, 17 Feb 2023 03:46:14 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2097.outbound.protection.outlook.com [40.107.220.97]) by mails.dpdk.org (Postfix) with ESMTP id 8329640A8B for ; Fri, 17 Feb 2023 03:46:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jpuKvbh0WuPVVnQQvIbx/zVK/WyWJjY8PAvJPYmALc+XFa0LwNapPK+w8zi1groUfeCvQdzv4ctNqToaI/fMMqzaGOIxerF8seOytRlEmmLcRhZeQYhk/6vUN1roe1aYnmbjD2CPBS9B+lZ2gBXPIpSqnCK5esGPemirQxppnhsW7BmpmwNo+tE44eJF9fcBqlvZPXOYrxuDf4/GjFzr8UZB0LRaLx6tRTEzC/UkyZyBAmrSlTXaW10HEXKrMFZPyoL3pe1XMVn/UHmbzA7BrH0/CnDR0FHRvEgCIxOyDPaKWvcerNpHjMMotfk/ENiZJE2rJLfhegQQbd+d+1Vptg== 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=JMfQxl2NN8hs/yzVU2LIW5wzRP3ULSd3N4Qjo/rjvhY=; b=Ol0z0/fIw9oNzruJyVQnLPUkV7NaslMUe89Ev66alexRkKrHAeb3QlollKWRdW2XkfLLoa+VzwFznWdMnTKxOPiX8L1G2JqLqibPGwlio5yoFzG0ZuAeaCpT4TQG4eCtMAXgzUpwT6nMvf02xoII1UcQe1H/mTGIoIjsydOyCTzuxCwFm+QUUHf691h8Dvj8Q99cG9DiRFG4lmTDwgZ+bVwi/BxB9peTGg8qlvhmdr47xSNhDfrXPqBc+1QAz6W3A2pJi9gp4rP3t8+xOoKhgdNLOmTJSUw9cSwIpueYSYJQafxrdjyHzS3pbj5oRhDBamOQyUpNX8z2ElD3fT2nrw== 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=JMfQxl2NN8hs/yzVU2LIW5wzRP3ULSd3N4Qjo/rjvhY=; b=otQOxOB/ha7ggzFgQLnkz8snS1RX+byKvabvXPLR8VT4g5YpBviBn2HdTjMla79mLWT+X16H/r3GZGYJ1ovP2TS1k3rUC5aL0GCxECPSo3Lt6eN0SBEPY1P/Kee7GOYTr986fURv8da1t2xHZt7PpJOH8tt8zJhiwLXSS7Le1Rw= 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 BN0PR13MB4567.namprd13.prod.outlook.com (2603:10b6:408:127::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Fri, 17 Feb 2023 02:46:10 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d%5]) with mapi id 15.20.6086.026; Fri, 17 Feb 2023 02:46:09 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH 1/3] net/nfp: add the log source file Date: Fri, 17 Feb 2023 10:45:37 +0800 Message-Id: <20230217024539.16514-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230217024539.16514-1-chaoyong.he@corigine.com> References: <20230217024539.16514-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR04CA0005.apcprd04.prod.outlook.com (2603:1096:4:197::16) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BN0PR13MB4567:EE_ X-MS-Office365-Filtering-Correlation-Id: 4591a8ab-2e95-4a8d-93de-08db10911f9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xVhSK1Mn7ky3hK5I4xvUVMVi9r6d9IXRcOF0ni1+ap5XApFqm0XIOXBBRxk2f37Qq1k61PYkH2Ov1i6OUrFNLpXqm2ORyBLMvN8Ghly5+89Qo9HgCei2RH2gTICqreUIcVgfQXcmTkJdC/11sbdD8zGm9Lr2D77VpIFLcRqGQ0luj7F3Zo0v2SFNjS/KrKMMLiZ940RY9YfT9PtEsb4XwgwQazsVCLB/brjm9VCTiG1WnR+LSjxrB+bqPT1gv99bj3eyUfpo64g7Lca8UtE4YgwLqVp1qKVS3o8ROtPObcXXkCX6XNIVo8ddpX8RtzQHOkCjj60r26FCBxW5Oa8Ng7aYbYqmGreAI+lr2bmKWM/R58rOGH6wOmVowaLf5xdoSxOqvXxuXcH5MT7gtJzND5F1LRNppwLsc8G+qfndeI4tZjlMmVoeDAJxGPpdNRcPa1fNZnb4KKVhDkJ8bQrGQsWzexmpu9kf/SGB7Y/7ffitfj069dfx2Qp4Es1iKyS6OqwsfIA/Fp77CN3PpDSEEopK8opToTvftE6hY0MoDaTN6xNHZa6jJrrkYQkoKXUQQNh3ZhFAGkwjQitfQjLzR2VapLs3CLcW2TbgTgaEr+9F1skCN+IRcDHwYrpJv8FfF3wzZ7HT5+c4ZGIw1qvWt58AJPocIC27e5jESceBzFMd/dssa/HYrsJhUgBzSWoQkHv15p7HhurhdQIzN6aNArnSrIxPbCDB3o+rTHU2wQyDSJzS/u2TQrjiI9zUbRXs 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:(13230025)(4636009)(376002)(39840400004)(366004)(396003)(136003)(346002)(451199018)(2616005)(107886003)(66574015)(36756003)(2906002)(86362001)(6916009)(66476007)(38100700002)(44832011)(41300700001)(5660300002)(66946007)(38350700002)(66556008)(8676002)(1076003)(6486002)(6512007)(83380400001)(478600001)(4326008)(52116002)(8936002)(26005)(6666004)(186003)(316002)(6506007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a21ha3h6d3JzdnhuOEJVdGYrdmhDNGxveXNSS24rcnpCbndwMWZNcmdGWnpF?= =?utf-8?B?c2tvbE5DQmp1SGo2ZU5IN0xXVC9ueURuSmhZZ3YyMGZLY2hnSGgyMW11a2p6?= =?utf-8?B?NnlLNnhYSWlqcW1waURESUZ0SHJOVHdBdXYySFc1NWhvdWhyY1BFbTZ5ZXB3?= =?utf-8?B?c1JRUVA0ZFBjdEhYbkhLNVRTY1VWbmJHSFNLcDBXMEtYTHNEeW9ycGNYN3hZ?= =?utf-8?B?dkJtelRKanFyY0M4NlNVbkdiTjBrOWJGbUlycjBoOXlLTWhTQU9Kb1Bvejc1?= =?utf-8?B?Y25PMjBtU2NsNjR4UzJ3aXZweitrZE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FT1hyUzdvRG5oTUNGM0VnTE5sdlJhWEFhWm5iWGN0cmE3YXkxcGJ0OWdF?= =?utf-8?B?VVE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4591a8ab-2e95-4a8d-93de-08db10911f9f X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2023 02:46:09.2723 (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: T0C7yqY3lBojQ1gQYUG99qrzyqmp/r9fXCeBlBf1IDdrLzarSVOHjcTNRCLrVb/JHHbg8lNqb/9gkEEv4nkIBGcDctu/hVQqpov35iGd0+Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR13MB4567 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 Prepare for adding more log functionality by moving the existing log functionality to its own file. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_common.c | 3 --- drivers/net/nfp/nfp_logs.c | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 drivers/net/nfp/nfp_logs.c diff --git a/drivers/net/nfp/meson.build b/drivers/net/nfp/meson.build index fc8fd906bc..b60eaed2b7 100644 --- a/drivers/net/nfp/meson.build +++ b/drivers/net/nfp/meson.build @@ -28,6 +28,7 @@ sources = files( 'nfp_ethdev_vf.c', 'nfp_ethdev.c', 'nfp_flow.c', + 'nfp_logs.c', 'nfp_mtr.c', ) diff --git a/drivers/net/nfp/nfp_common.c b/drivers/net/nfp/nfp_common.c index c9401055d4..21737ff51d 100644 --- a/drivers/net/nfp/nfp_common.c +++ b/drivers/net/nfp/nfp_common.c @@ -1562,9 +1562,6 @@ nfp_net_set_vxlan_port(struct nfp_net_hw *hw, return ret; } -RTE_LOG_REGISTER_SUFFIX(nfp_logtype_init, init, NOTICE); -RTE_LOG_REGISTER_SUFFIX(nfp_logtype_driver, driver, NOTICE); -RTE_LOG_REGISTER_SUFFIX(nfp_logtype_cpp, cpp, NOTICE); /* * Local variables: * c-file-style: "Linux" diff --git a/drivers/net/nfp/nfp_logs.c b/drivers/net/nfp/nfp_logs.c new file mode 100644 index 0000000000..48c42fe53f --- /dev/null +++ b/drivers/net/nfp/nfp_logs.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2023 Corigine, Inc. + * All rights reserved. + */ + +#include "nfp_logs.h" + +RTE_LOG_REGISTER_SUFFIX(nfp_logtype_init, init, NOTICE); +RTE_LOG_REGISTER_SUFFIX(nfp_logtype_driver, driver, NOTICE); +RTE_LOG_REGISTER_SUFFIX(nfp_logtype_cpp, cpp, NOTICE); -- 2.29.3