Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4649805pxt; Wed, 11 Aug 2021 10:41:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpimi35uRnJHGhhYqejrZllWB1ItHLeW2ns/xZk4KKt4USDnpcV5A3WjnZT3a/DMcnw77v X-Received: by 2002:a17:906:f2c9:: with SMTP id gz9mr2523198ejb.41.1628703714352; Wed, 11 Aug 2021 10:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628703714; cv=none; d=google.com; s=arc-20160816; b=zW2tgP26/+s7lN/dCxn1CQ/0/qaOt/7f0MQGzC72k5XWBG7Y+j+rDGF1AiiXL2pk6V UmdszF9/JnYS449hGfvHPMwBb90oI+CTq8oXxzJJDiGkACbAoXeBjiw0M7Zwtw6IILxH oJm/F9I2tEmw5bGloWAf88hYjlZfok9YAiahQ3bz4/zYJjP4mLNAxxrSQ/dJ8GwMxJWp uOw9WcNKkx16NVA1d1v6jtX0GxSVBBxCCTBlKTz2ejPojevq3CaRwhoT0XpwVA1ediBt wJ8zvMSSTgyENY55qVbf1B9aMDxn0bWFMielOZOk9ewyjRz+Z0eGEN1NSepx5ADNf26q avng== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6tCiBXyEPPVHcytD6Q7sBcV/4LPCan3AiWP5HZnI2c4=; b=eXrQFvc2FnOYa20ggFgUuiJFGCK3hvSQxcLIpB7irrgx/HDNuD4R8rmEwWCh6Cb3DE eIDTnDa0BDsjDeSTmEubAtyDHB8iurHfkHdQ8IavSxVviX4LMLmhW3HXem5gEnAutHFw HlXFJJLFdgA8GHv12YBkwhLy7l4FCqP7sc5PA0UDVvY6bDWKs6J39IBs+NC/j11YuHqs cUKLCBGQ/ZUHjWbq/Mshg4tYIZOqUm8NYnQjmkaruX9FAvNoPI6WL6CDvt0WLKFf0xRC 0hIHO5qbTjRqlUrqwX9dRTMfOm9sqlFDfukfaSqu4E4Fv6qRRF1B7KmdBkovd+49CQQx tr+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OYNZMCCD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si3127864ejx.13.2021.08.11.10.41.30; Wed, 11 Aug 2021 10:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OYNZMCCD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbhHKRip (ORCPT + 99 others); Wed, 11 Aug 2021 13:38:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38026 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhHKRil (ORCPT ); Wed, 11 Aug 2021 13:38:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628703495; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6tCiBXyEPPVHcytD6Q7sBcV/4LPCan3AiWP5HZnI2c4=; b=OYNZMCCDWzMQA4PilthT0QWNBKStE3qlZj+egfJWE8pKGP5UbsQom5XYBd8e62uPZj+Ord aX/hIzXiJIKozEOEe+Z6J4p5nVOsubSe9OCWGPXWrmZYsi1o3ZrhptSOXYzxIXnnc6v10e I9AN2YrjfG3DrlC+1tL03cJY3k/tUsQ= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-413-imnCy9Q_OPiuCd3ki1QnDQ-1; Wed, 11 Aug 2021 13:38:14 -0400 X-MC-Unique: imnCy9Q_OPiuCd3ki1QnDQ-1 Received: by mail-wr1-f69.google.com with SMTP id m2-20020a0560000082b0290154f6e2e51fso999606wrx.12 for ; Wed, 11 Aug 2021 10:38:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6tCiBXyEPPVHcytD6Q7sBcV/4LPCan3AiWP5HZnI2c4=; b=HH3+GvlIa2jnS6iY/KyILTwIIddQdDUrtcEFTf9RE1s3HMhtc9IolZ/LnJMGH4KZVU DfMxCArAOCEqDcsgPH4zTlc/UBvN1SrrM+AY1RP8YDsvyse0l4ODkLe3qKAEZ6Q+JP8c r7+NqFjYBDV/pU5UF509x2lL8Z4sLQW4cNu3KtaqlU7oRzXrH4THJwMoveV6mOQ1s9gZ 2WW2AG2QmFiCxUirQV7LXZ113rCFe/EOPL7apGUbmr2x657RtGrUjG/dBE87DL0P+f01 9ijnIlM1cblRbFnKpXi1WqOSzh5D34Eai6xACRNdCEMZ7Nqu0b/e6EE8N2SQr6RQu5Wf a1qg== X-Gm-Message-State: AOAM531Ne1PY9XkUrPB2lnvOZJappcPY4QuE/Zzk6PTN37yVr0sMiTkp hSC84qkEHDbF4OP4u6ySmYUhM2jowRf0Q05CZK/geXUF9ilL+18KuErNftJ7rJuaV7qSQvLerPa YdCILQEBrDsMdVKO/ZeihOMzy X-Received: by 2002:a5d:4e4f:: with SMTP id r15mr4511384wrt.346.1628703493607; Wed, 11 Aug 2021 10:38:13 -0700 (PDT) X-Received: by 2002:a5d:4e4f:: with SMTP id r15mr4511375wrt.346.1628703493439; Wed, 11 Aug 2021 10:38:13 -0700 (PDT) Received: from pc-32.home (2a01cb058918ce00dd1a5a4f9908f2d5.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:dd1a:5a4f:9908:f2d5]) by smtp.gmail.com with ESMTPSA id b10sm8505245wrn.9.2021.08.11.10.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 10:38:13 -0700 (PDT) Date: Wed, 11 Aug 2021 19:38:11 +0200 From: Guillaume Nault To: James Carlson Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Chris Fowler , Jakub Kicinski , Paul Mackerras , "David S. Miller" , "linux-ppp@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ppp: Add rtnl attribute IFLA_PPP_UNIT_ID for specifying ppp unit id Message-ID: <20210811173811.GE15488@pc-32.home> References: <20210807163749.18316-1-pali@kernel.org> <20210809122546.758e41de@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210809193109.mw6ritfdu27uhie7@pali> <20210810153941.GB14279@pc-32.home> <20210810171626.z6bgvizx4eaafrbb@pali> <2f10b64e-ba50-d8a5-c40a-9b9bd4264155@workingcode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2f10b64e-ba50-d8a5-c40a-9b9bd4264155@workingcode.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 02:11:11PM -0400, James Carlson wrote: > On 8/10/21 1:16 PM, Pali Roh?r wrote: > > On Tuesday 10 August 2021 16:38:32 Chris Fowler wrote: > > > Isn't the UNIT ID the interface number? As in 'unit 100' will give me ppp100? > > > > If you do not specify pppd 'ifname' argument then pppd argument 'unit 100' > > will cause that interface name would be ppp100. > > > > But you are free to rename interface to any string which you like, even > > to "ppp99". > > > > But this ppp unit id is not interface number. Interface number is > > another number which has nothing with ppp unit id and is assigned to > > every network interface (even loopback). You can see them as the first > > number in 'ip -o l' output. Or you can retrieve it via if_nametoindex() > > function in C. > > Correct; completely unrelated to the notion of "interface index." > > > ... So if people are really using pppd's 'unit' argument then I think it > > really make sense to support it also in new rtnl interface. > > The pppd source base is old. It dates to the mid-80's. So it predates not > just rename-able interfaces in Linux but Linux itself. > > I recall supported platforms in the past (BSD-derived) that didn't support > allowing the user to specify the unit number. In general, on those > platforms, the option was accepted and just ignored, and there were either > release notes or man page updates (on that platform) that indicated that > "unit N" wouldn't work there. > > Are there users on Linux who make use of the "unit" option and who would > mourn its loss? Nobody really knows. It's an ancient feature that was > originally intended to deal with systems that couldn't rename interfaces > (where one had to make sure that the actual interface selected matched up > with pre-configured filtering rules or static routes or the like), and to > make life nice for administrators (e.g., making sure that serial port 1 maps > to ppp1, port 2 is ppp2, and so on). > > I would think and hope most users reach for the more-flexible "ifname" > option first, but I certainly can't guarantee it. It could be buried in a > script somewhere or (god forbid) some kind of GUI or "usability" tool. > > If I were back at Sun, I'd probably call it suitable only for a "Major" > release, as it removes a publicly documented feature. But I don't know what > the considerations are here. Maybe it's just a "don't really care." I'm pretty sure someone, somewhere, would hate us if we broke the "unit" option. The old PPP ioctl API has been there for so long, there certainly remains tons of old tools, scripts and config files that "just work" without anybody left to debug or upgrade them. We can't just say, "starting from kernel x.y.z the unit option is a noop, use ifname instead" as affected people surely won't get the message (and there are other tools beyond pppd that may use this kernel API). But for the netlink API, we don't have to repeat the same mistake.