Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3947713imw; Mon, 18 Jul 2022 18:08:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqfKY3Gzo5otYK89oE8UATmIsCVld1IM/zqdQC+O1xGc2frgdXjM6ynSRvjiDL8Ln6JoEJ X-Received: by 2002:a17:907:75da:b0:72b:3ce0:2524 with SMTP id jl26-20020a17090775da00b0072b3ce02524mr28289872ejc.394.1658192930704; Mon, 18 Jul 2022 18:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658192930; cv=none; d=google.com; s=arc-20160816; b=d7mkyXtp3kdfO1MD8/20KH834GZXrFOtjFC57RSsjA8ED3r/owhhh4HRAjcBm9NRtX zFdLLOsKHuDOsnEzAXNUVeN1uVZmar97X4674O3XpvaI8vLfXva1L8hbs8ZSUQKnzeEb FudkfuSuTS6sIlFjUFEjsgb2+H6IfMab8PdGlaW2N9jGdYlKslVNCho6T+arUWvrbjus Zfs4o7kFzD0u8/0zg33n4zZw9g2dHDIQoAR7ZfTDOKtBUbtxRV90SHVJRkRZhKotWekU 5w/kIxBD3lgRz9OGXliGuWZZtgqJEh+Kt61rTypjaefYgyiWFMsq0caJGb+FoXImIjSd xb4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=4pX6tZfi+H4zMwgN0XpHuRLOtb7jYYFiWXpxZxR/UZc=; b=Wz62U41U+fz2vl7gk53Fktiyf4Tp/2JHm6BOS3U41Wxp+QFQy6+zicCgMIlkrcKE5t FS6ZoDmd2hzRqYNtAijqvUeuLQeGL7KCVL5rluQjAcX+OCSwI1Dj5oILKL2+cSzSygxV udPB7exX9anpWmOGJ9zqHWfGsvuNFpACDRmpH3loDWaBsoShX2vWtc4Wu/wVDG0sbSDO XjDmYIfhIiK96KJmZCjIMmQ07uMt6gBw3Xb6G25eXVQDbX+iAHRUK7WEaMESH7LnR6CI 3OXPIL9dN0+3HtsJCGhdssT5gk4BaPVp5b2pmEt1agWkdXOjozu133oySPS+Ie+oujJs jq/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go33-20020a1709070da100b0072eece129bdsi19895458ejc.59.2022.07.18.18.08.23; Mon, 18 Jul 2022 18:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236214AbiGSBDc (ORCPT + 99 others); Mon, 18 Jul 2022 21:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiGSBDb (ORCPT ); Mon, 18 Jul 2022 21:03:31 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78C6E29CB9; Mon, 18 Jul 2022 18:03:30 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id D8D70FFA1A; Tue, 19 Jul 2022 01:03:28 +0000 (UTC) Date: Tue, 19 Jul 2022 03:03:26 +0200 From: Max Staudt To: Oliver Hartkopp Cc: Marc Kleine-Budde , Dario Binacchi , linux-kernel@vger.kernel.org, Jeroen Hofstee , michael@amarulasolutions.com, Amarula patchwork , "David S. Miller" , Eric Dumazet , Greg Kroah-Hartman , Jakub Kicinski , Jiri Slaby , Paolo Abeni , Vincent Mailhol , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH 2/5] can: slcan: remove legacy infrastructure Message-ID: <20220719030326.49f204f6.max@enpas.org> In-Reply-To: <1dbd95e8-e6d7-a611-32d0-ea974787ff5a@hartkopp.net> References: <20220716170007.2020037-1-dario.binacchi@amarulasolutions.com> <20220716170007.2020037-3-dario.binacchi@amarulasolutions.com> <20220717233842.1451e349.max@enpas.org> <6faf29c7-3e9d-bc21-9eac-710f901085d8@hartkopp.net> <20220718101507.eioy2bdcmjkgtacz@pengutronix.de> <1dbd95e8-e6d7-a611-32d0-ea974787ff5a@hartkopp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jul 2022 12:23:05 +0200 Oliver Hartkopp wrote: > IMO it does not break user space when slcan gets the common naming > schema for CAN interface names. For what it's worth, slcan provides a specific ioctl to resolve from (tty fd) to (netdev name). As far as I can see, any sane program should use this API to find whatever device it has created, irrespective of the netdev name. @ Marc: slcand and slcan_attach in can-utils do not depend on the slcanX name, as far as I can see. They are the main interfaces to slcan, and apart from that I can only think of scripts doing netlink stuff and scanning for slcanX. Does this change your opinion, or is breaking such scripts already a step too far? I'm thinking that in other circumstances, I've had cases where devices were numbered differently just because they enumerated faster or slower at different boots, or with other kernel versions, or because of media inserted, etc. - though renumbering is of course one step less than changing the prefix. > We had the same thing with 'eth0' which is now named enblablabla or > 'wlan0' now named wlp2s0. Actually, the kernel still calls them ethX and wlanX. It's systemd+udev that renames them to the "unique" names afterwards. It's an extra step that happens in userspace. udev is immensely useful, but also great stuff for race conditions :) Max