mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: linux-kernel@vger.kernel.org, michael@amarulasolutions.com,
	Amarula patchwork <linux-amarula@amarulasolutions.com>,
	Jeroen Hofstee <jhofstee@victronenergy.com>,
	Oliver Hartkopp <socketcan@hartkopp.net>,
	Max Staudt <max@enpas.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Wolfgang Grandegger <wg@grandegger.com>,
	linux-can@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH v2 2/6] can: slcan: remove legacy infrastructure
Date: Tue, 26 Jul 2022 13:58:45 +0200	[thread overview]
Message-ID: <20220726115845.4ywgubfpqfbl7qa3@pengutronix.de> (raw)
In-Reply-To: <CABGWkvrBrTqWQPBWKuKzuwQzgvc-iuWJPXt2utb60MOfych09A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]

On 26.07.2022 12:11:33, Dario Binacchi wrote:
> Hello Marc,
> 
> On Mon, Jul 25, 2022 at 2:38 PM Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> >
> > On 25.07.2022 08:54:15, Dario Binacchi wrote:
> > > Taking inspiration from the drivers/net/can/can327.c driver and at the
> > > suggestion of its author Max Staudt, I removed legacy stuff like
> > > `SLCAN_MAGIC' and `slcan_devs' resulting in simplification of the code
> > > and its maintainability.
> > >
> > > The use of slcan_devs is derived from a very old kernel, since slip.c
> > > is about 30 years old, so today's kernel allows us to remove it.
> > >
> > > The .hangup() ldisc function, which only called the ldisc .close(), has
> > > been removed since the ldisc layer calls .close() in a good place
> > > anyway.
> > >
> > > The old slcanX name has been dropped in order to use the standard canX
> > > interface naming. It has been assumed that this change does not break
> > > the user space as the slcan driver provides an ioctl to resolve from tty
> > > fd to netdev name.
> >
> > Is there a man page that documents this iotcl? Please add it and/or the
> > IOCTL name.
> 
> I have not found documentation of the SIOCGIFNAME ioctl for the line discipline,
> but only for netdev (i. e.
> https://man7.org/linux/man-pages/man7/netdevice.7.html),

Ok - What about:

The old slcanX name has been dropped in order to use the standard canX
interface naming. The ioctl SIOCGIFNAME can be used to query the name of
the created interface. Further There are several ways to get stable
interfaces names in user space, e.g. udev or systemd-networkd.

Marc

-- 
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 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2022-07-26 11:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25  6:54 [PATCH v2 0/6] can: slcan: extend supported features (step 2) Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 1/6] can: slcan: remove useless header inclusions Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 2/6] can: slcan: remove legacy infrastructure Dario Binacchi
2022-07-25 12:38   ` Marc Kleine-Budde
2022-07-26 10:11     ` Dario Binacchi
2022-07-26 11:58       ` Marc Kleine-Budde [this message]
2022-07-26 12:11         ` Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 3/6] can: slcan: change every `slc' occurrence in `slcan' Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 4/6] can: slcan: use the generic can_change_mtu() Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 5/6] can: slcan: add support for listen-only mode Dario Binacchi
2022-07-25  6:54 ` [PATCH v2 6/6] MAINTAINERS: Add maintainer for the slcan driver Dario Binacchi
2022-07-25 12:41   ` Marc Kleine-Budde
2022-07-25 13:25 ` [PATCH v2 0/6] can: slcan: extend supported features (step 2) Marc Kleine-Budde
2022-07-26 12:14   ` Dario Binacchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220726115845.4ywgubfpqfbl7qa3@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=jhofstee@victronenergy.com \
    --cc=kuba@kernel.org \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=max@enpas.org \
    --cc=michael@amarulasolutions.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=socketcan@hartkopp.net \
    --cc=wg@grandegger.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®