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 F120C45E92; Fri, 13 Dec 2024 18:16:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE7114068E; Fri, 13 Dec 2024 18:16:57 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id E7DCA400D5 for ; Fri, 13 Dec 2024 18:16:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734110216; x=1765646216; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=UX/MezkkhuwDck0dPYJ5jPurG5ddBbqRI4ImLwJntlU=; b=G/pWFFFaROeAuU44Q/XqOdeVWPUJi9eYJaiMOcyht0rlk5vMWi8/zDpA ThIpqKQLBkiXrWsc9kSgFyX8bmohWzRq56+aZQXumG/b28yOku9Qp/q2P ru5uxZ6zmDZgyzLyff5lwmOv8xGfRxpru1qOzxBG4Xtx1ht8ftDXZQyx7 MNFm3UJDn7g+FaqUJbz2Y6Q6N6opaIvemMxngQ/EmEy/bhXCLfmKVKd9E n2nGUkmPxCu5lPUzSEFY2aen0E6L3yw1qpe2pDF07PJvLscggMIbrhX/t IG5GA8aHSBnJ9OWbvY0A5rDh/PbzdvnoVV5lgNnByJigBTxwLAeTmkmV1 w==; X-CSE-ConnectionGUID: wmdB3fFlRMqdvRMXvNVd8w== X-CSE-MsgGUID: p2xL3/MeSO2wzNOGRN6PMg== X-IronPort-AV: E=McAfee;i="6700,10204,11285"; a="37416368" X-IronPort-AV: E=Sophos;i="6.12,231,1728975600"; d="scan'208";a="37416368" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2024 09:16:55 -0800 X-CSE-ConnectionGUID: 55Q3EIcdTj6FOQ54TZJRZw== X-CSE-MsgGUID: fMmDEiFQSTquwy/7/GWipA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,231,1728975600"; d="scan'208";a="96470554" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 13 Dec 2024 09:16:55 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Fri, 13 Dec 2024 09:16:54 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Fri, 13 Dec 2024 09:16:54 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Fri, 13 Dec 2024 09:16:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OjTqsxsUxHg0aNj5x1po+BakfCXKuVcX2bNYftwpGI9sxL1FclP+2HrRRyKvtxnBu7/B1g/nSWU+7J4ZhwMpCuPOEt6j+9HeTg6Z+FXFtXf50hzcooNY4ct7qtcekOHq3TpqGmjPgn/5ImsJQshZ59XmuR4pqkVQ3ihsRNcYrs9oetGQBJmib54DC3AvAMUlWvgMiErIa7asOf6my/dQzu8zC36q7yc45m1fhYj1v/hj4zinnZ1pRZ2gNVsfkfX8CNPVfY8v3kGZQY2288TlrQ8usOEINNlG35rbXa3Ta7aOuHCOW3TFPwc92eQHl7bzdvOTYCazXD6SVxaNI7A97g== 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=aO9wSdkknMyijM0vsAgBlBB8Flvquyo1SPHq15/L55M=; b=Dg32mQ4c+iIzBnQo3zmjSmMzS3z4T9QpIqWPC7lpg4dDiauBzrX4Ki3NfkIQLYG/JB8eDlHeFmWf5wgvk/++pSC5tAcMOd+qNnCamI9CX4XcYGPeiBBQwf7Qe8hSLq5FYxHZ5rHGJWHXEJPteABeaf6egLpoGmnQaR/Z5dJf5rFE4aLRZDbEjE8PbuMdJ0GBeAE0oyo1H9sNK1wQsi4I+OqLXDbmRTwXdczvu/kXyuZxDdyFBG8HnNmZ0k6I2Q2TRuPNIf+aFKUDjGzc60qq5oNO7Se5WXKx/Y2g6bYEZcB5ZXEXcxpbetbJIGMiMW4p5/45aJRW/vPkF18U+AI07w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by IA1PR11MB7344.namprd11.prod.outlook.com (2603:10b6:208:423::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.18; Fri, 13 Dec 2024 17:16:32 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%4]) with mapi id 15.20.8093.018; Fri, 13 Dec 2024 17:16:32 +0000 Date: Fri, 13 Dec 2024 17:16:23 +0000 From: Bruce Richardson To: Stephen Hemminger CC: Yang Ming , Dariusz Sosnowski , Viacheslav Ovsiienko , "Bing Zhao" , Ori Kam , Suanming Mou , Matan Azrad , Subject: Re: [PATCH 1/2] net/mlx5: improve socket file path Message-ID: References: <20241213092444.2987-1-ming.1.yang@nokia-sbell.com> <20241213091239.7934b8b4@hermes.local> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20241213091239.7934b8b4@hermes.local> X-ClientProxiedBy: VI1PR04CA0111.eurprd04.prod.outlook.com (2603:10a6:803:64::46) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|IA1PR11MB7344:EE_ X-MS-Office365-Filtering-Correlation-Id: d277342a-1579-4117-d245-08dd1b99e399 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?OP6ixzs7dS2gHzkW3Jn0R85oCkkCBBICou9xl0sncIFvjUmRINsbunJzGair?= =?us-ascii?Q?ZomKk7JppaMEKRgfRUS4KBb46OZEYJcz3q1SVvTcKJ4TnfrxnqtuIsypNYZu?= =?us-ascii?Q?aOEIkceEiZ9wYBp3APUjqdrpgdvlvZLR2zom5gI1TgxX9azyYUoJNu4286qu?= =?us-ascii?Q?baJSNXPMGLSGxwNaMgjDqRV73A+hYlDhzT46nii22FWiiQYEvlVmDAdGcqL3?= =?us-ascii?Q?t/pBh6vsziXixyRR3HWHSD6vrlfcu7Ut0TMgDxMuHq3Qh2y0OrDCjJrcgItN?= =?us-ascii?Q?h0T6hhN0cZEWRn5c2JdkwGeDaJKGnHRjc21m9ksJ3nvN+tm5GrZap0Eak0YC?= =?us-ascii?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IXFccD2y1EK0ArTDdRMXZRYiOIf8ziL?= =?us-ascii?Q?DKRsOEQhLDMkaijQ853nLmqL+VjPmyHkJhgHw5zH0PVL7d8J60CXPcY0RxCQ?= =?us-ascii?Q?hztpAYORU1p6Y6zetf1UlpE84bj1kyvVy5f5xGhrYJ65jA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fCPKMhd/iLn7MnMXSQcT/SE+S1CfNmpEV3mkrqnySU0SoxwVgH0gKpvFTdPR?= =?us-ascii?Q?PY/AB1vQKpFXcpjiBRLk81BS27FHGKRMxqXRKbJ3yNiHrCwjgjjCEqEAXL38?= =?us-ascii?Q?ErkRxpAHr2RTlH5PDxa+3goubKPkyxAg99d6tPtYL7FPWCg4r43NyRMk2jrG?= =?us-ascii?Q?2DDcl4nhZZQSQhwoDTnSadCVTF5eox7AYCTKMZmur679hwtcjx+mYV2e8VYh?= =?us-ascii?Q?QOTwqa4fIg0qMyT2KiZxINnOYpEkR7tzdS9LvX+D4k+T1UQPyQ3X05jLKtF5?= =?us-ascii?Q?ZDCkq+F+M/n8eQCnn70r/JmxCNZrOCd7g5jN2v4fjQtxnKzoXYfvzN+qdDds?= =?us-ascii?Q?QsDmFwVEwWonXpwvqLjmW340x0RQ1AyG2+zffQQg/D392ofK+gxXslpgR9oT?= =?us-ascii?Q?MeeG71uWJWt5pg1exhH0GGHyBC9KGiZ4vAe4c5e1bIVaBsBIHcs0KjrtaLXt?= =?us-ascii?Q?gbPIcFy9dov7GIQOJHl2IG6jAo07jWmMM5CtKtUh/AXhhg/djyyUKnxZyJXW?= =?us-ascii?Q?PQQqavBG87pukYiweE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us-ascii?Q?iMyR5jrFIbH/GVo78A2WCJ+m41OwGr9EE8UyB1JsBfb8DYELBzZVzfs2QmV2?= =?us-ascii?Q?ATp0HSF3OR4spWS+X4lyH6SgRXIkvnVllYj4fRwM+8KIuxe8vnEIgjprfsg9?= =?us-ascii?Q?H9oQRsFEG9DEG0DAFi3/opknMAGXDtJvajDwMT2a8S8LKT/8dyRnCXiwdvXS?= =?us-ascii?Q?+Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d277342a-1579-4117-d245-08dd1b99e399 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2024 17:16:32.1184 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wusO+3ogP2ETMab4iP5dekL+uSkHRc5t++EHaa/Hlonziq9e/qrvN3oLb+9tYlUeNp5XlGQr7lehDT6TlaukaH08OOuvw9hMOAPP92kKgh8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7344 X-OriginatorOrg: intel.com 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 On Fri, Dec 13, 2024 at 09:12:39AM -0800, Stephen Hemminger wrote: > On Fri, 13 Dec 2024 17:24:42 +0800 > Yang Ming wrote: > > > 1. /var/tmp is hard code which is not a good style > > 2. /var/tmp may be not allowed to be written via container's > > read only mode. > > > > Signed-off-by: Yang Ming > > Since this is a unix domain socket, why not use abstract socket > that doesn't have to be associated with filesystem? In general, I think we should avoid abstract sockets in DPDK. Primary reason is that they are linux-specific. Last time I checked other unixes, like BSD, don't support them. A secondary concern is that having a filesystem path allows permission checks, so for e.g. telemetry sockets, only users with appropriate permissions can connect. With an abstract socket we'd have to open up the area of user authentication. /Bruce