Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1333720pxb; Tue, 17 Aug 2021 09:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsXuhmel+btugTDD1fjDeYLIsHoxNRidKFiKpY8dlz5+dCzrkA01BkdL2SWKzuD3i3v5XZ X-Received: by 2002:a05:600c:1d01:: with SMTP id l1mr4128147wms.178.1629216688869; Tue, 17 Aug 2021 09:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629216688; cv=none; d=google.com; s=arc-20160816; b=z7OUaOERMIJzqxPmpHX2CYMeXxfty2i2n+vg1b0dm1fIqeMYTfVFag9lySDZ1/n5uj TXNje6R0mjzP69LUdSo49P5WqrbYmf5BpREi+AolnoZK3UMryEL3zgP8nfw0kk6s5IhW +DEwumz4mLIR15BLWTtyEBFaljO2UhHFY7oiykmIg7tHM6S1+wveSc6pVxS+u4mbUCkd QzqnWsCreMsEoHULzv1Oh1ov/OxVYd1MxZ77u4bR4XecbkAZY84Yn8ScS8ZN7++8PJFx d5J5s372G+r/oFu7dHuCWCq8K/uKiW3e132c8gYDWoYXC+kJczMkSyFikePhUf8J/2RW sHSw== 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=9gzzg2YwEyV3U2nBjj+cUEsKQ5qhPEMvgE1ztK9QOzY=; b=vSEMafTRzyqMpVXh25V2dUGmsKiuW3AM62450p8rdXSd04mjPfe0Dyf7z4sKVRBAEK bo5p7OuzP10oidpPBhm7yE4X3sMR3brD0V/D6q/fNwnNeNm/hpaDKu68/BXgZVS7Izcc AtS/PGtliIUv3Djaqq2cBDQ/eTV6STXI7ZwAA/5qB2A9XLpCVjg99NaiFqOREuFi3GP3 l2jBXUkPCJa28ccfDAhffJttamuz7fYQMBnUtsyrBuPF1U90fcnCe7+rbSLvyUbObUmW nRDwvAeW20UP2lmjqPkr8wkhSHw0x6nBGOBLPSzuL9RMYU3jaaZzHWlDYs/xqq91g6nd LPDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RsOsE75c; 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 o23si2868457edt.314.2021.08.17.09.10.56; Tue, 17 Aug 2021 09:11:28 -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=RsOsE75c; 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 S229839AbhHQQGJ (ORCPT + 99 others); Tue, 17 Aug 2021 12:06:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23375 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbhHQQGI (ORCPT ); Tue, 17 Aug 2021 12:06:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629216333; 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=9gzzg2YwEyV3U2nBjj+cUEsKQ5qhPEMvgE1ztK9QOzY=; b=RsOsE75chmxexCnrSKGeVmVOk4nzscZ/rsNy3TWTDFvIArtPpwI1h4O1axFXYQBlDlYyR2 RBydZX4QgP6VYXE//wjToDyWgUab4qewpgrTrwBOs6WMl3c84s9rvU2fGaNONg2JYx4BAI ituw7vHmI8/2aIr1THAKeZl2gqWnh40= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-Xs7gxkTJPr64H2GC6iaCVw-1; Tue, 17 Aug 2021 12:05:31 -0400 X-MC-Unique: Xs7gxkTJPr64H2GC6iaCVw-1 Received: by mail-ed1-f71.google.com with SMTP id x24-20020aa7dad8000000b003bed477317eso4694677eds.18 for ; Tue, 17 Aug 2021 09:05:31 -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=9gzzg2YwEyV3U2nBjj+cUEsKQ5qhPEMvgE1ztK9QOzY=; b=baApUdkE0csLrbEUWYJh96NqnCfh6Pta7i5HwPY7q+K+TDSqWlvOkOmLm8s4R+AQW5 dxSx2SzoGJ/sBaw7aLNxC+2u8iSh1cpxs1gJeNeULmd7DJxfPW9tC7ut0UCHdBHX/LTD hTTWxmJO/OuHQkRGN3bMmu64hYuAEkbJw47ve9iYfvjIAeqa9MwZ+6eSUs3cmjP127L8 nQIRqlhoZiyUXs/+tw8G5e38opozOe5Ej/1wto6UDW1yCSz83uQYRVJvuP/aX9PyGWQH 9V7ARsSxG06UctzLTooDCikGi8Gai3LM77Vj5GC1rzUnoT5NuLH+H0Umy+7PBK14WY5A Nj9g== X-Gm-Message-State: AOAM531Jg42DJ2MJQ+G/Lx1OCW4z1jNsksRI3kEQeRDsPtNyKE1SQnWx FyJI2+o5Vwb8WwqByxPy12Odj4QZCajuhLT/x1n3IspjpauI3XkjxVoNQZCZYR3jCv6uP22ZYfy b3UjAHns4oILEaMibHL9KHhFH X-Received: by 2002:a17:906:38ce:: with SMTP id r14mr4723481ejd.268.1629216330629; Tue, 17 Aug 2021 09:05:30 -0700 (PDT) X-Received: by 2002:a17:906:38ce:: with SMTP id r14mr4723459ejd.268.1629216330407; Tue, 17 Aug 2021 09:05:30 -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 q30sm1286707edi.84.2021.08.17.09.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 09:05:27 -0700 (PDT) Date: Tue, 17 Aug 2021 18:05:25 +0200 From: Guillaume Nault To: Pali =?iso-8859-1?Q?Roh=E1r?= 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: <20210817160525.GA20616@pc-32.home> References: <20210810171626.z6bgvizx4eaafrbb@pali> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210816162355.7ssd53lrpclfvuiz@pali> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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.