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 A066945B7C; Fri, 13 Dec 2024 10:25:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DEE04065E; Fri, 13 Dec 2024 10:25:13 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) by mails.dpdk.org (Postfix) with ESMTP id 1944840661 for ; Fri, 13 Dec 2024 10:25:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kwSuzMJ9ri2yoDviHDALtn3sU9IZubqtrYsTIsQDxEWDLxJWYav/JnhbY6gqPZmG9NZfv/pnXZakUWpsEGzBWiWzCgQ/mYLFEDkCp2Sxn74AXRo388rPy0RUithr86f8agZYe+jwHOPGfwXUIe89nG38kFhzvEmO+AsQq3DYx5s+/ASwgbi5dwOFxX4YU9Mfcs5BY6H88rhEDIV2jBppmIMytoG0p7ilftrxxnpEukm7u/x7c4ULxRLjkEvN9fSgniD8OCnFHeNgxHyIDd4s0fItsKKtOYYnFAT8LskIulQpbQB8xKa2tp++qNv1ceo8ZOTx36gT3N8/ukTteNYtgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=o6uLva+q6K5Jhyol8taksZ2kkXn4UtUC72zIrv/CbGg=; b=S+rqQT+TKGzNvl7J+EXbD20DX66H5OW9nWQWZDiO3acRvfowg6CHz3kETY0gxrU9hiirF0wztHMuQPTr41RM4r9XGvQehNUqI7RYkc50JSd8V11fG5EsNC6qMt3JrElR+7QyDizyOzd1W+jBb4xFClBkObTmhF7BOkhl6K3FHKub2EO6xLQ6SwrLCposOx4NBWkP6q/H25OnQOnaN/3+iP/Cl5qyHf4DecI04px7J6tiWyvIf6zqR+CmnGruaXk6m92nnWvpR5PjfyAfomRGBDAyzcY7X4vhTZFeeZAEigLJ40FtCE+hTXz8mhtu56UFFEQiZ8dWKHOLZvHjLueUfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia-sbell.com; dmarc=pass action=none header.from=nokia-sbell.com; dkim=pass header.d=nokia-sbell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia-sbell.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o6uLva+q6K5Jhyol8taksZ2kkXn4UtUC72zIrv/CbGg=; b=hy3MtMX3wC/sPgE99G1gXAJFmyDJLTtrYSNq+NHbMMs4bWP1RgxkGPp/Bq0UKn6svzeUAQD4ZuJSqDdZXBq8f5nFReOe10Nj3uQZs8yvJvqx4hygdcMk/s0eoVqlTi5xWNe8CJehTCwVjJ6T25zHld/eNcaZfS6e+gkaPIX4tdH3iVRSKaD0GYbJxebqtUYKNDoZbJ8xXe3cEhBjPmXwU4f0p4dTAiWZPmpgU+5dHxTxbNPWB3dcQ9h5FWg5h327wBTdkvGdryHieaNcmnWndykCxhxDX+F+aaNXSVMqpTzAjbovSTAr3MLiTH9WES1TmazUqk4vcKuFt/XvAWnWjw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia-sbell.com; Received: from VI1PR07MB9898.eurprd07.prod.outlook.com (2603:10a6:800:119::6) by DB9PR07MB9624.eurprd07.prod.outlook.com (2603:10a6:10:306::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Fri, 13 Dec 2024 09:25:10 +0000 Received: from VI1PR07MB9898.eurprd07.prod.outlook.com ([fe80::1928:4afb:4eee:1f21]) by VI1PR07MB9898.eurprd07.prod.outlook.com ([fe80::1928:4afb:4eee:1f21%7]) with mapi id 15.20.8251.008; Fri, 13 Dec 2024 09:25:10 +0000 From: Yang Ming To: Dariusz Sosnowski , Viacheslav Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad Cc: dev@dpdk.org, Yang Ming Subject: [PATCH 2/2] net/mlx5: improve log file path Date: Fri, 13 Dec 2024 17:24:43 +0800 Message-Id: <20241213092444.2987-2-ming.1.yang@nokia-sbell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241213092444.2987-1-ming.1.yang@nokia-sbell.com> References: <20241213092444.2987-1-ming.1.yang@nokia-sbell.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0011.apcprd01.prod.exchangelabs.com (2603:1096:4:191::6) To VI1PR07MB9898.eurprd07.prod.outlook.com (2603:10a6:800:119::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR07MB9898:EE_|DB9PR07MB9624:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d1542a9-be74-441c-3d11-08dd1b580a90 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?XTm08ZVwkuhXNx+Ul7uMlQ0PwNn0/JvFpORRv2EAp0tXLjmbueW4Jl+gUf7f?= =?us-ascii?Q?o+lmTId/5xvvOKGBNzJD85XwOwetwtxDE8qCbFLpsmO+1IwO7MB8Pmbee6eK?= =?us-ascii?Q?0fwcHLvPTMvg+GX1+C8VuRr9VelotGu/wPrcgu4EwsnHpIBOxhkTYiWEPFKw?= =?us-ascii?Q?SE5Yr9WW9TiGP6J076k1nsfLAV2aubDhGUy7ZWWCfdjnYivws7u/v1b+i1nr?=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8ax2ETXAVm31viwF2+q+znZ1PZ?= =?us-ascii?Q?ioMA/+2SX6is/jUVyJL6JiQZZo+7l7kFYhAH1WH5nENMC8UDTPEz49Yw/BUH?= =?us-ascii?Q?+lfp2ogZuwGwpZi9qjyxTl33/nMufSX7lfp/ddVZOOoBhDpKKqz13jEWmoq4?= =?us-ascii?Q?NvrHl47AgokOEdJze1bCGgBT8PF9IaonIkbkL0k1obWrjcnWDNmQ6ziUZYff?= =?us-ascii?Q?eLek9q8YbQOIa0dSQB9H4ZkbvprHu0Q3e0+P2Af179g8IgJT1eJxEcIIhj1N?= =?us-ascii?Q?Uc4j97p01tbyh0R+PI+bWyJaHVpD?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR07MB9898.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?n0EqnW3j9FIkfqu0MpuYHzieenTb7z/twIndzfd1NY1NjBosCDzFlAiOpdjg?= =?us-ascii?Q?bDbdmYR8D+C8w9yPjPVcU5ZRe3CtaSFI6AX+mJRfM8U4iQxL7i1DW0HeYa0x?= =?us-ascii?Q?HLuhfwoG/1WFux/SUd1UNrgBDbbQo1AQ1DYT5Zp40Dwh35ZU7y79SMh0IPC5?= =?us-ascii?Q?DRbv8OxAqZtHx6oBOJRaGhIW+VJjjxivc1w5XDXFbfO7iourZTQV5joOb2iv?= =?us-ascii?Q?HXqIRVoitJzv683CvIvZez5d7aM5Bdbuq6OwjQIpmEE1Sr96plpTzGems9Xv?= =?us-ascii?Q?2zfq/SI8NM7xIrzVxWSNaRD8qk9ZFzQRaENsJ/ZvyI/eZNmc/NB30Q3VfICV?= =?us-ascii?Q?ZA2aimu8G+9ZdQ63224h5BvBdSfs94UAOKchCs/Im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0pkwuHFKP4G8EeoRDXVu1gMwmeNADOWDc//4txFV3sYrytTVFRiIO/W2?= =?us-ascii?Q?8/HW/IO441ic9Uu4oYuKEv2NuDGcE77JKtcZpMICl7sAQFt1jTiXlcIKEWDo?= =?us-ascii?Q?baruDt3bhSMhlXPvPMLtt+ESkAi+/l00GyfCr0xuFehFwW8Y0KHDh3BFk3N7?= =?us-ascii?Q?2zzHU+Q2Wczd9AipmesysiIA37Db9HcFbOru6s2pP4HAdOURYzjUb17PFM0R?= =?us-ascii?Q?k0n36gjd2mES0Mn/yT2O6R7ZDLbl7xPyJ+qme+Z2e6SEI7c/vgAasGpMNXIe?= =?us-ascii?Q?UxUOioV7NncQxyn3svqZQ2Q7E20prUEPxS4S5YQxbhbSJiM0wfpUvAcWCF9g?= =?us-ascii?Q?cw=3D=3D?= X-OriginatorOrg: nokia-sbell.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d1542a9-be74-441c-3d11-08dd1b580a90 X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB9898.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2024 09:25:10.6013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XeYMXf6yvgfLyyE9jnlajCD2QyXLz830CXYxo1UjcUFbA/dcmhEa/BcU9l+ETOFboZuUtFSPqXGtWVmr5jkV1wkAmGArkEG1ag14MHCVYk0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB9624 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 1. /var/log is hard code which is not a good coding style. 2. /var/log may be not allowed to be written via container's read-only mode. Signed-off-by: Yang Ming --- drivers/net/mlx5/mlx5_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index eadadcdffb..a0da73c9c3 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -311,7 +312,7 @@ mlx5_set_swp_types_table(void) } } -#define MLX5_SYSTEM_LOG_DIR "/var/log" +#define MLX5_SYSTEM_LOG_DIR rte_eal_get_runtime_dir() /** * Dump debug information to log file. * -- 2.34.1