Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4784102imw; Tue, 19 Jul 2022 13:12:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uyV4iGBhx4z4ldFtuLZMsfbBPtQAgQGHFCpIdn/THBNeyy1Qab9wgP+q9M8mFkNLD1wRFF X-Received: by 2002:a17:907:7fa5:b0:72b:755a:b77e with SMTP id qk37-20020a1709077fa500b0072b755ab77emr32587071ejc.474.1658261530831; Tue, 19 Jul 2022 13:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658261530; cv=none; d=google.com; s=arc-20160816; b=Z/PjcxJ0fTbEKklCBBtUd7o6UbLBoWspSddBWFjqnFVh+BhuCsrtx/p5o1MvZ4v8qA fPD5PJxUUGa10v7vL6LO+6s/LhjHEv6bIhfwBEVIFp997sViJB9ESpBK+8eQxzvXvVgb t3NzYzpjrtID8eC+BPQBo4XGvwwGlnxY9NPY4IbnMeMPjKq+m8HAkvLCbamjQnX3b+T4 iNIHYVj0rUk/cPibIs3WfaJmPzKpJY1QdS/hKdq3bpal9zN4vDff0Bu/3ryEeJGycGIX G6whdot7M8DS2e3no/GkakGUx8EFxsAdE76Fol/LdeIHPUtmAddP1gwxx5AIFT2/SnfD T7wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lGVXjU9r3d3B0Qyf6NBGiY1hw0FiN5tWx2GhLO9S+aM=; b=iYlw4BDCnpmu+IBmNysAKsrB3bem04lf1qQ2S2Y1+tSvH04u3dPRPmbRsBrkfrRv0M op0vZD+n0UC3NTFXGKeVPwskIpT1cfBxEyygreEzhcYN5R2yF7SpjxstTtqXRH4VjYhT ATQ/oSkQ2OqN3i5KZa1hRLTdM6ZInp1mZcY1V+FBytQm/4dpsg9Zktk9ndGyHDa8+Cws QemCQYCw1djVqSrufuE4MjguhT/1/LLevHXpJ9LTKW4ApzsP+csBJJBk7v3JbN+5Np/s 88c25qYzJgRh5viJxnUAfIhvQACMPyJGHKOPmJv+QSIxsTbBXOPbIqxxEthcySmaWY/h g8mQ== 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 r11-20020a05640251cb00b0043ab671ef59si5453957edd.9.2022.07.19.13.11.46; Tue, 19 Jul 2022 13:12:10 -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 S239858AbiGSUAX (ORCPT + 99 others); Tue, 19 Jul 2022 16:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239808AbiGSUAB (ORCPT ); Tue, 19 Jul 2022 16:00:01 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFF885FAFC for ; Tue, 19 Jul 2022 12:59:47 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDtNT-00009d-MM; Tue, 19 Jul 2022 21:59:31 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 9774DB44FB; Tue, 19 Jul 2022 19:59:27 +0000 (UTC) Date: Tue, 19 Jul 2022 21:59:27 +0200 From: Marc Kleine-Budde To: Max Staudt Cc: Oliver Hartkopp , 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: <87cze0swkm.fsf@hardanger.blackshift.org> 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> <20220719030326.49f204f6.max@enpas.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ysl3shm5z3qhsg5m" Content-Disposition: inline In-Reply-To: <20220719030326.49f204f6.max@enpas.org> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 --ysl3shm5z3qhsg5m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 19.07.2022 03:03:26, Max Staudt wrote: > On Mon, 18 Jul 2022 12:23:05 +0200 > Oliver Hartkopp wrote: >=20 > > IMO it does not break user space when slcan gets the common naming=20 > > schema for CAN interface names. >=20 > 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. >=20 >=20 > @ 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? >=20 > 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. Convinced! Please change the patch to use standard canX interface naming. Can you add a pointer to the ioctl() to get the network interface name to the tty fd in the patch description. > > We had the same thing with 'eth0' which is now named enblablabla or=20 > > 'wlan0' now named wlp2s0. >=20 > 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. >=20 > udev is immensely useful, but also great stuff for race conditions :) Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --ysl3shm5z3qhsg5m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmLXDRwACgkQrX5LkNig 010B1Af+MvShZt0Wg4q2B453izcpmEdgMAr5fhWuOO4qOKRAR02A9/N+0FH9g2n2 FvO47MwZn2SNH61WupsbmVmdBlMcA4UZtr9U6fECqhIQstVcISJ75HFitf9Ox+LN s2xzH7Ksh5qSI09VG205JUENUx5ExcrEebZRkX66L5SVgh05KToDLUCCKOBPmdqQ SHrL51XBl0Os0grerSsiW5RbZOHpNWrSXvlhCg8WwZKb6JBxxPRFjd76h7I9lnS9 dzD42/EK7H7Sks92QXcDoE6iawYnEF4+vpCuUBLVXg785G/H9Qco2rGu6R7xYrMf Ijp/T4E8yOMi5r5poXrbUR2g+Y1BZA== =CrK0 -----END PGP SIGNATURE----- --ysl3shm5z3qhsg5m--