Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1526123imw; Sat, 9 Jul 2022 06:22:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tj5hlszteyynrmEnsZkPG9V2/BZKlo1e7fUBzk5Bfy2SZh/YUYkeEbvL9z7YCo13F8TI2f X-Received: by 2002:a17:90b:4f91:b0:1cd:3a73:3a5d with SMTP id qe17-20020a17090b4f9100b001cd3a733a5dmr5956381pjb.98.1657372965494; Sat, 09 Jul 2022 06:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657372965; cv=none; d=google.com; s=arc-20160816; b=SptqS/+8LzjtQOJwWmbumreexXxdARkD+H6o53fZrac4kHUSXmFLY/l3zAygeq6q+G Uo4AJQfOKVGWifsOpJOPHzL9MZ8EWrm3MaMmafCGV8PMjHu4Df1mBcPupX5hMKko7aAb auASCSg0E7r7qOb9WC7HXYD0JRShqLvx+LwhiR5mIxV57bb3ZVNMPDDAbx9EHBVybb8e 8L10NOGxYVlOGx4wOOye4d4+4h8Gab45Ndoc1+7yjP4CcbIoh7jv4Y+gjs70YJqsMvUt Pf96jA3WSrPjlxfR2JfQGTZCa3zYvXZ9JaJ48nBP/OQkEuv6OsxBvBQN3Hv4s4ch5JSe lNRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8hD5Oo+M3WkpqXi+bI8L/iD0048sj0JxZ6VwW7w/I9A=; b=FO+/fd4qDeiX/U2IGxA2jYaip+WCtR0OveWhs3Ev4NrpR1nlEnjY3s8B9cTTkyxTmV Krp5FMXKHPHWc6SZSifl7Vj9iVKIapHLT78nPu68m3dzVJDS1MauCET5Hy0N8eFZCAJM DxQ0ZKyf5fNb2d/Ri9HPtfyPjL4NOCaCJSaVVPdwsqx2eW4P3MPdKo/gBXOjfK0J5Aoo B9B7zh9y3HWCObSULr0aqDeM755oJrcdxBWZuuCb5NRki7GK74PUMJRXiZUzQQhRQARc b9dibh1ereoUAq1wOyGWnVSJ+22msaQwLJNleXQyu44Lrs9ad+tJwG7gCtOQeHh/h/UG bekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mPO8bNZx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a056a00088a00b005184ae7a3c4si3067183pfj.140.2022.07.09.06.22.33; Sat, 09 Jul 2022 06:22:45 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mPO8bNZx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbiGIMJP (ORCPT + 99 others); Sat, 9 Jul 2022 08:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiGIMJO (ORCPT ); Sat, 9 Jul 2022 08:09:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD762371BF; Sat, 9 Jul 2022 05:09:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8D5C3B819D3; Sat, 9 Jul 2022 12:09:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23274C3411C; Sat, 9 Jul 2022 12:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657368550; bh=YO9kouytDckeiNed5/PCbASz81pBf9NT+av1kb0cQ1g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mPO8bNZxLY9r7WrCyVYilLh1vks62Uiw++D7pq2dWREbVaf+Jr+qUGtPD8UTZfnpZ a0EO3Huvk8UlObsL7KZvOWrJfbuQrzbd4fEpwAm4odVRmk4h3nygcu16dwChQKJGmI TkexGG9zpMyMDXpmwXkerfGhcZZLO2hZUNYaeHmzbND9XvDbI1aaiEUkgqrrV9edBs QQYXdsiiGdlbNcmzKQX2NlYr1IbPcZWlQjCqGRQn0xjJJfEJJlDmlveGR/83yhA3Fz TKzguVd5e1EQBtIRs+xmBGdBgcU0vH7VcYBBV4GEQ+bUEgOCiWrOKu9Q7PDAJI2t6L kKM+/GVUvBZHg== Received: by pali.im (Postfix) id 18984AFA; Sat, 9 Jul 2022 14:09:07 +0200 (CEST) Date: Sat, 9 Jul 2022 14:09:06 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Guillaume Nault Cc: James Carlson , 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: <20220709120906.ymkhn5diywadgrka@pali> References: <20210811173811.GE15488@pc-32.home> <20210811180401.owgmie36ydx62iep@pali> <20210812092847.GB3525@pc-23.home> <20210812134845.npj3m3vzkrmhx6uy@pali> <20210812182645.GA10725@pc-23.home> <20210812190440.fknfthdk3mazm6px@pali> <20210816161114.GA3611@pc-32.home> <20210816162355.7ssd53lrpclfvuiz@pali> <20210817160525.GA20616@pc-32.home> <20210817162155.idyfy53qbxcsf2ga@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210817162155.idyfy53qbxcsf2ga@pali> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tuesday 17 August 2021 18:21:55 Pali Rohár wrote: > On Tuesday 17 August 2021 18:05:25 Guillaume Nault wrote: > > On Mon, Aug 16, 2021 at 06:23:55PM +0200, Pali Rohár wrote: > > > On Monday 16 August 2021 18:11:14 Guillaume Nault wrote: > > > > Do you have plans for adding netlink support to pppd? If so, is the > > > > project ready to accept such code? > > > > > > Yes, I have already some WIP code and I'm planning to send a pull > > > request to pppd on github for it. I guess that it could be accepted, > > > > I guess you can easily use the netlink api for cases where the "unit" > > option isn't specified and fall back to the ioctl api when it is. If > > all goes well, then we can extend the netlink api to accept a unit id. > > > > But what about the lack of netlink feedback about the created > > interface? Are you restricted to use netlink only when the "ifname" > > option is provided? > > Exactly, this is how I wrote my WIP code... Sorry for a long delay (I forgot about it). Now I created pull request for pppd https://github.com/ppp-project/ppp/pull/354 which adds support for creating ppp interface via rtnetlink. rtnetlink is used only when ppp unit id was not provided and interface name was provided. > > > specially if there still would be backward compatibility via ioctl for > > > kernels which do not support rtnl API. > > > > Indeed, I'd expect keeping compatiblitity with old kernels that only > > have the ioctl api to be a must (but I have no experience contributing > > to the pppd project). > > > > > One of the argument which can be > > > used why rtnl API is better, is fixing issue: atomic creating of > > > interface with specific name. > > > > Yes, that looks useful. > >