Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1345086pxb; Tue, 17 Aug 2021 09:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaDJkFcuLftBlJGuaVBbToQjRFu/JGpKEG3wXFUOI2ZJSfPGciczvI3OjX8G05lcqxd0KE X-Received: by 2002:a17:906:7250:: with SMTP id n16mr4895268ejk.147.1629217617024; Tue, 17 Aug 2021 09:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629217617; cv=none; d=google.com; s=arc-20160816; b=XLZaSXu7ldSouU/qPmVs54Zl1TAQsMLvqioxeiMCXUDnf5gVOTJSCvV/1oWyJHUTYu 25g5npYKgL7PXbHPn3xfkFRMUd5wZRQ+r8pcJ96Avw7R+NzSnYBtYeYlVwSX3bTQsnGf UY1vr17Esjd7QTJC/0C1GJso37/viZUrUQCPAvBhHLyKx7b6W1/WAOXetcMZx9T7G1BN BKTMw7m137KfTHsOqZ1AseGDH8YD2R0RK6xV2nQei8NaMkCtZwDZP9AqhYqH8fKORuiv v2XFPU86Am6kv14UdrFijBNQ2fDGOApCnJS5vgDLqbyFJ2LKOuqtj1PdHUnLuY+92DNB 73kQ== 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=M9PFuAWOZdbeOZdZfuUDELB9hD8rGt0ftZbGAX5vFpI=; b=hVi5uIJlo91dUUCScoma0KuYpnSv1jNoGURniX3pId+7/cTfDqgVxOuPbyLLQMo6p+ Vvd619zyfnjSlPvSCgyraYSmLnluBUsGA8L2y/7onUtYCQoRbE2gyEldvifY3HVOMrnE eYPUmqum/4SlDQOw7jb+lefcejf4qO0M0ggiDwMQv9Tqg9ifCtkfsne9kt30x892h3+m EUCebtqmLibQX1xB2QiVteWnX/eGD4A+e67k/igIeCosvo+8Ls1kna/QE6WroLFnnmUZ AbCvNylYtykzC8orq+JfdGTBBRI6nxNTkXpl2h5GJ6I514siP4QrQ+MMNu++4q04mO3I xKZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RHXDYfrc; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si2980946edv.401.2021.08.17.09.26.30; Tue, 17 Aug 2021 09:26:57 -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=@kernel.org header.s=k20201202 header.b=RHXDYfrc; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbhHQQWf (ORCPT + 99 others); Tue, 17 Aug 2021 12:22:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbhHQQWb (ORCPT ); Tue, 17 Aug 2021 12:22:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA8226024A; Tue, 17 Aug 2021 16:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629217318; bh=uvTnRPMf3m+BMa0dC84OgWxUTeCf5SBKHaey7ORbF60=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RHXDYfrc0vYScIDGjw7tI64vXtnESwYGy/fivZuqu7yCMOZ5w/ivrzCbE9RZxdMND qvd8wiAGhAD6wrPpX7REEr7UFqwcx/cKxQJUV8Yj/1uD8uJeHkl347XKuR/iZJhlJu oLJspdr9vf7Apeie+M8FAfKUtmI3jizDzwqbc8T+guDd4sKFrY7K0WqTnADkqzfmw4 tGQc1B1o9xuDhAXP5I8DmqsNMIEYyScbX6mrtLbYWks2iG+ehSBiy6Jng0t0SX0/03 QNdGIDl6XYBnbO9g+Jz6jvWfZIsLqeYY49fs1NCdU4geOFU2KMKMdS/WsuCtVK+Rgj E+jmXLmFuPvQw== Received: by pali.im (Postfix) id 747EA842; Tue, 17 Aug 2021 18:21:55 +0200 (CEST) Date: Tue, 17 Aug 2021 18:21:55 +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: <20210817162155.idyfy53qbxcsf2ga@pali> References: <2f10b64e-ba50-d8a5-c40a-9b9bd4264155@workingcode.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210817160525.GA20616@pc-32.home> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... > > 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. >