Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2336769rdb; Tue, 10 Oct 2023 00:12:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGY6euq5rgXVv/g1Q1SUe6ndAHtM3ow6X1nda3O74oWoOrBVbODHlQCsLSWpx1e5vrlFY3A X-Received: by 2002:a05:6808:2097:b0:3ae:55e5:43b6 with SMTP id s23-20020a056808209700b003ae55e543b6mr20884570oiw.48.1696921958635; Tue, 10 Oct 2023 00:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696921958; cv=none; d=google.com; s=arc-20160816; b=XBWaJVjlyc5c0zKmDarTjB8VXPF+wd7TTuXye5qOUabsBxFsZV8jCuR9psOxzOaDTd /9nHqFY2xHZVyvODdXOYnU6M/qCEcOsKrLkVfhXRIDXJjbnQFaqfVNlkc/yhvQO080Jy IFcSDPuqmOio6koF8AX8mfVaYhRJCRYS2+tCAIWgd/WSQT89p8mYzLmM8m3FzHGUfipH U0Q92jiQfnIt4E5w9uPZVSjEjR6IAKRXYSFOEfAxS+ow7IhtGVLJZPZVZhFkY5oL05+s +EVCXHeT/zPlzCGWHSYJyTdoWMXwPXyMtQ+vKNBTtWjBy7uepHOIFHpWp1XJgVhVVjfj wsBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=eUvPRIJArqBvglFEffD36FDsS1qVmG+5Ft49NzUWJog=; fh=BdKc7Hq5B6w+JlJcb71fZQ4ArGNC6mm42WPhv9CBU2k=; b=umMs+ZNamkK52RLmOX9s6YpZamLTrXI3JLNy/NaIWjTG78ZAg2gA2IOHiCbPnYFw8v 3/hkdrpfsHAjZTTpCFOR6L6UoRslz9XGNUd3Yj2QOFwYEMb7rHDrfCgZVKfhWhBdGy5b VuumEPmaVoLcR/ipgKfeHSolvpoRZGUvY+Pb72Rxny4wNucxNkspMdN9pYLYk8aOL5tx 1Wz9Rjm2JMR/k+7xCeYB1+di6C6hvSKbiQjvxt2V0U4qwN5QObQwuDfPtJfPcG/CEiXG PJr6XSGrUwMvnK/ET86zz4QTMaknilfzOmN6viLts9bnonwxXyBHG6orRugOXLu7+5is 4XYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="NSm7/M5h"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j15-20020a63550f000000b00563dfffe7b9si2262784pgb.810.2023.10.10.00.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 00:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="NSm7/M5h"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 782B98082DCC; Tue, 10 Oct 2023 00:11:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442364AbjJJHLh (ORCPT + 52 others); Tue, 10 Oct 2023 03:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379425AbjJJHLg (ORCPT ); Tue, 10 Oct 2023 03:11:36 -0400 X-Greylist: delayed 60 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 10 Oct 2023 00:11:33 PDT Received: from smtpcmd0883.aruba.it (smtpcmd0883.aruba.it [62.149.156.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AFBEA4 for ; Tue, 10 Oct 2023 00:11:33 -0700 (PDT) Received: from smtpclient.apple ([178.197.206.108]) by Aruba Outgoing Smtp with ESMTPA id q6suqxIxki9R4q6svqPMRa; Tue, 10 Oct 2023 09:10:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1696921830; bh=gEXjtagqpqyynIWjFMSuP5JkLJk6Z4DuAC3b0cTet3U=; h=Content-Type:Mime-Version:Subject:From:Date:To; b=NSm7/M5hQSK2qsd6hw9qO0u9abrJ+jSzYsPwirRGzfXewecsH08hOwKe1Oo8ucPsJ y0oyVkraU/Zrf/VeCtoDcL9S9WXWX42STnUqlYvaTcf41TsvqeX3YqjWRHLWc17Aoe PlfmuDZHldPdW4xa2mKOOoY1qD4Mkr7nM8qT/afm10d+PrKkY8zwNidg2ZbsWi4Sbk qknfrH/PRefhKd0Ym/TWrYiWlk2NKYvC34p8t3s8N0LYMRas+3ZzCHP3v5NlvdEGMr YWa8ncNxYRrJJWQBGyC7iwWjUgUpuDXPToPquMrGpRxU/LO7bweTAgsHQPKxJJDPMr D5ppYk9juahVQ== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: Re: [PATCH 01/10] appletalk: remove localtalk and ppp support From: Rodolfo Zitellini In-Reply-To: <3cb4bb96-1651-4179-9c32-507937282d7d@app.fastmail.com> Date: Tue, 10 Oct 2023 09:10:28 +0200 Cc: Arnd Bergmann , Jakub Kicinski , Netdev , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, Johannes Berg , linux-wpan@vger.kernel.org, Michael Hennerich , Paolo Abeni , Eric Dumazet , "David S . Miller" , linux-kernel@vger.kernel.org, Doug Brown Content-Transfer-Encoding: quoted-printable Message-Id: References: <20231009141908.1767241-1-arnd@kernel.org> <790BA488-B6F6-41ED-96EF-2089EF1C043B@xhero.org> <3cb4bb96-1651-4179-9c32-507937282d7d@app.fastmail.com> To: Arnd Bergmann X-Mailer: Apple Mail (2.3654.120.0.1.15) X-CMAE-Envelope: MS4xfHaXEfCIAhkSs0tsjb+YZNldBBGkq0Qz33d9TLc3sdp/647xEnlcFyPLsWPtHwDgl+ZnrBiZEU4PUgye4kZxtVDhPsFDW0vXeYf7+fioTb/Y1+YHM0+S 4QYs2KC2ur50/kfdPt9XLm4Q9vF06uT32m3oGSwtJqzasFX4TOuiwQmiAdWTtr/rbSJWo/LnZDmzUYpucj/LRQDbXs2e2Cmuou2RB6tBCODnxN4FzycSM2+o j865lcv6ukBr3FB8mg9c7tqJ9vjnKNRsMwujPZR9gkVBKwm+1d4+L5v0NYHAbCTbgMyefVEPjekvnVbMR30K2GXjs/Pi5YAy898ye14B8Fw/cDqnTlcJPyM9 CAGSRnWNDcfA/WI9tCF2011rhbEPvAZTiPscfjhS2HGj5+bQMjE/srGP/xoeN/196/4EKvnsvJjpg26zFXjYc7ps1AUQqtXalMlWgHWvrJXDpYNvWzcnm9oC 1E5G26PirT+aduxDVnBQh1aGXGx7WcS28KPKy9bUPqVVMvm6GJ0Gcn3Ysr33ZmlyfgE6doYUoIrwYgmZwBEUWOQ3Imci6z9b3J1FqcdGogdYreeS95iYBVqS SMGBbDSxA4519nsLop0Wo3ppOIjDyODNtIX4eCLTyiXD9g== X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 00:11:51 -0700 (PDT) X-Spam-Level: ** > Il giorno 9 ott 2023, alle ore 19:29, Arnd Bergmann ha = scritto: >=20 > On Mon, Oct 9, 2023, at 18:49, Rodolfo Zitellini wrote: >>> From: Arnd Bergmann >>>=20 >>> The last localtalk driver is gone now, and ppp support was never = fully >>> merged, so clean up the appletalk code by removing the obvious dead >>> code paths. >>>=20 >>> Notably, this removes one of the two callers of the old = .ndo_do_ioctl() >>> callback that was abused for getting device addresses and is now >>> only used in the ieee802154 subsystem, which still uses the same = trick. >>>=20 >>> The include/uapi/linux/if_ltalk.h header might still be required >>> for building userspace programs, but I made sure that debian code >>> search and the netatalk upstream have no references it it, so it >>> should be fine to remove. >>>=20 >>> Signed-off-by: Arnd Bergmann >>=20 >> Hi! >> I=E2=80=99ve been working on a new LocalTalk interface driver for the = last=20 >> couple months, do you think it would be possible to at least postpone=20= >> the removal of LT a bit? >>=20 >> It is a driver for an open source device called TashTalk=20 >> (https://github.com/lampmerchant/tashtalk), which runs on a PIC micro=20= >> that does all the LT interfacing, and communicates back via serial to=20= >> the host system. My driver is relatively simple and works very well=20= >> with netatalk 2.2 (which is still maintained and still has support = for=20 >> AppleTalk). The driver is basically complete and trsted and I was=20 >> preparing to submit a patch. >>=20 >> Still having LocalTalk in my view has many advantages for us=20 >> enthusiasts that still want to bridge old machines to the current = world=20 >> without modifications, for example for printing on modern printers,=20= >> netbooting, sharing files and even tcp/ip. All this basically works = out=20 >> of the box via the driver, Linux and available userspace tools=20 >> (netatalk, macipgw). >>=20 >> The old ISA cards supported by COPS were basically unobtanium even 20=20= >> years ago, but the solution of using a PIC and a serial port is very=20= >> robust and much more furure-proof. We also already have a device that=20= >> can interface a modern machine directly via USB to LocalTalk. >>=20 >> The development of the TashTalk has been also extensively discussed = on=20 >> thr 68KMLA forum=20 >> = (https://68kmla.org/bb/index.php?threads/modtashtalk-lt0-driver-for-linux.= 45031/) >>=20 >> I hope the decision to remove LocalTalk can be reconsidered at least=20= >> for the time being so there is a chance to submit a new, modern = device=20 >> making use of this stack. >=20 > Nothing is decided, I'm just proposing my patch as a cleanup > for now. It would be nice to still drop the ndo_do_ioctl function > though, at least in some form. When your driver actually makes > it into the kernel, you can find a different method of communicating > the address between the socket interface and the device driver. Yes I too think it is good to remove ndo_do_ioctl, I designed the = TashTalk driver to be a drop-in replacement for COPS mostly for = compatibility with netatalk 2.2. My plan was to propose it like this (so = nothing else needed to be changed) and the propose some patches in the = kernel part and userspace part (netatalk). > I can see a few ways this could work out: >=20 > - add a custom callback pointer to struct atalk_iface to > get and set the address for phase1 probing instead of going > through the ioctl This was my initial thought, at least for the moment, mostly to keep = netatalk happy and make sure I don=E2=80=99t break other stuff that = makes assumptions on how the address probing worked. There are other = bits I would like to improve, for example tcpdump (which parses = correctly appetalk packets!) is broken in the current implementation. > - rewrite the probing logic in aarp.c more widely, and improve > the userspace interface in the process by introducing a netlink > interface This is sorta the =E2=80=9Csecond step=E2=80=9D I was planning, I think = the logic for probing could be redesigned and simplified (it also does = not work 100% correctly), and it could be a good chance to improve the = interface with netatalk too. > - Move your entire driver into userspace and go to the kernel > using tun/tap. This has the added benefit of avoiding a lot > of the complexity of the tty line discipline code you have. We had some discussion too if to just make the lt an userspace stack, I = personally like how it is currently implemented because existing code = can run basically without modification. I would propose at this stage to change the TashTalk driver to remove = ndo_do_ioctl and to use a custom callback, if this ok. Many thanks, Rodolfo