Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3316121rwe; Sun, 16 Apr 2023 17:16:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bxXVC3zrB5sIue0CWezh93uX573ILSEuj7KTN/VeEk3XSuBJPOXbUw4Oq1pAfrQqGQXbUl X-Received: by 2002:a05:6a00:1903:b0:625:efa4:4c01 with SMTP id y3-20020a056a00190300b00625efa44c01mr18254655pfi.3.1681690595208; Sun, 16 Apr 2023 17:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681690595; cv=none; d=google.com; s=arc-20160816; b=MDS5J0WjPWDD6BwTO/NImU582PA5p2YHkE14gUUU3BC3UfB6hPlm+2aSY0sRsI2L8D ndPSbCAT4UoY7D8llMOF0gEcYjMfN68yaBcn+O00c3jxHIXgqDPCYS1ZzW1F3YPlPKa8 gjld/8rXAJjHsXnBlgqfGH04AeteaUvGRuGVg7xPEH+Djnb0Gu8I7YZQLCWBv/b2VGny jvFGYOzX10xaOEWP64Ku9q7ggGDsLVYFS3sjIvOI8kVIsoB2W+hLO4Jpvq3QANCv6hum nCrkLNWXww07oYh7twziJXXC95SXsmaGhni5jeFqhUw8j6yp5PzsqVhXfldr9XIiTHql 5xvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=c/9du1pTQxuFmsehzwwNMU4yY87a5CAPPM5Exm4q60U=; b=Lt2XIsGaLbTsmvD62ZVrt6ITDsnJMBgrOn7obtaflvu8onyFRC0XEW7PuFPAkR2gFt L62Fp147EOpMVTH3iy+LvIpuHuskPtoM8FcFSN4mvH99KSRZOi1bOImtXiMT8yGPurVl 6z76pvZWjjjRwOEKABQgXq9SkQggSmflYjGwZ3lQDz2WdrM3WVousaM69n5RNSIk59MR FJ/3VUcHuPKi+AWlcj6bryZ2RVE7SFEV9MwrzcrMAbsHuUedj6bydgSmqJE63owBtCaY U2mNOii1jUw3ZtusulpvzqznBpPUOAL62hyIpbWwgoN4G7YgKTVxUuFfwFYpAD9GNb/S fgWA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020aa79d88000000b0063b8a37e41fsi2569999pfq.206.2023.04.16.17.16.24; Sun, 16 Apr 2023 17:16:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjDPWnV (ORCPT + 99 others); Sun, 16 Apr 2023 18:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjDPWnU (ORCPT ); Sun, 16 Apr 2023 18:43:20 -0400 Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1341BDD; Sun, 16 Apr 2023 15:43:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id C769E20187; Mon, 17 Apr 2023 00:43:17 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vX8EeMPoLeKL; Mon, 17 Apr 2023 00:43:17 +0200 (CEST) Received: from begin.home (apoitiers-658-1-118-253.w92-162.abo.wanadoo.fr [92.162.65.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 5F97F20186; Mon, 17 Apr 2023 00:43:17 +0200 (CEST) Received: from samy by begin.home with local (Exim 4.96) (envelope-from ) id 1poB5Y-003fMu-2g; Mon, 17 Apr 2023 00:43:16 +0200 Date: Mon, 17 Apr 2023 00:43:16 +0200 From: Samuel Thibault To: Dominique Martinet Cc: James Chapman , tparkin@katalix.com, edumazet@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PPPoL2TP: Add more code snippets Message-ID: <20230416224316.xlvgjor65nejldwh@begin> Mail-Followup-To: Samuel Thibault , Dominique Martinet , James Chapman , tparkin@katalix.com, edumazet@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230416220704.xqk4q6uwjbujnqpv@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,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 Dominique Martinet, le lun. 17 avril 2023 07:26:41 +0900, a ecrit: > > +The ppp interface can then be configured as usual with SIOCSIFMTU, > > +SIOCSIFADDR, SIOCSIFDSTADDR, SIOCSIFNETMASK, and activated by setting IFF_UP > > +with SIOCSIFFLAGS > > (That somewhat makes it sounds like the "new" netlink interface cannot > be used (e.g. ip command); Ah, right... > although I guess sommeone implementing this would be more likely to > use the ioctls than not so having the names can be a timesaver?) It's indeed a timesaver to have the ioctl names, but perhaps we can replace this part with a pointer to a if-configuration documentation? > Also, this got me wondering if the 'if' fd can be closed immediately or > if the interface will be removed when the fd is closed (probably not?) Closing the fd would close the if, yes. AIUI one really has to keep the pppox socket (for stats), the ppp chan (for non-data ppp packets), and the ppp if (for the if). Samuel