Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5284070rwe; Tue, 18 Apr 2023 05:01:05 -0700 (PDT) X-Google-Smtp-Source: AKy350bNJSnyq1arLTjjuIiLJhy5aiF+iyxhL+CXG3q8RHK1sC37MvcEP3MkjHurTfFu+fM5QP4e X-Received: by 2002:a17:902:da8a:b0:1a6:97fd:29e7 with SMTP id j10-20020a170902da8a00b001a697fd29e7mr2109134plx.27.1681819264868; Tue, 18 Apr 2023 05:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681819264; cv=none; d=google.com; s=arc-20160816; b=gkzc+6MY4XlebXRLXiATwA0vEo+mygUc8eTFX0umxK+2EtmzPSv5eXWmrMyU3su5+U FkpP6PoAa4dS89UfqRnxqJVpVoi8h3EhJnDnKE5LlZtH99jIK0z/gSNoyp4FYNBdW8ak 4Ys0OmFeLTRxJD+jl3mm1K9fwoeLGcTLaejlC/pfA3e5januC8BDDMQ6GnBxNCax75AL GluHNmTlFlFsk7DZVfgVSXMYsNbZI0UvoqKH1gFGYxnPcsq4ubNkKwO14K9Qdt89P1jy n2j0a9qWdpML5cZc1u81yBKQcfqkO5JUIX9LjDj8LkxIyKd/lzeFIJwTWe8hyc1hTcb8 jLQw== 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=nntG3b+S+sOmXAMURt3Fd9fFcC1Gig2V2din+49sgkI=; b=Yd9XGgE5hTqAMCJcQoK+3kR8UwddHmhk3kLBH4MlQsHKkjzbbOAkbdm4dg0C1Kj0eg gwu5+Xs1dIo0sa+xuEr5gOdiJVvL2vyZ74vB3/f7YOf3KbyMLXzvaP9igYPmmPxQA6sc 3zwTAlnoh+7xRHO5O3IMf+JvPNHLcjbybesSDcZXsMsUUAu3OUw8Do3qSqor2piSwIQu 5EXdUt4nqZYVU2iZXalHXwIa57tT4o6YUAXRY8jcrBSKCRYY1o3LPrduYc9xxwQuq42E G4IJNaYbUUVNiZdhaqZWfjDw4mu5QhJC8ryeDV2PFY3fo0kKHjLltBqZWXpavpzLbAJC j/Gg== 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 d7-20020a170902728700b001a6e8791efbsi3492361pll.465.2023.04.18.05.00.51; Tue, 18 Apr 2023 05:01:04 -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 S230158AbjDRL6G (ORCPT + 99 others); Tue, 18 Apr 2023 07:58:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231485AbjDRLz4 (ORCPT ); Tue, 18 Apr 2023 07:55:56 -0400 Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4419EC9; Tue, 18 Apr 2023 04:54:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id C075C2014A; Tue, 18 Apr 2023 13:54:10 +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 AVlKHqG3c8RX; Tue, 18 Apr 2023 13:54:10 +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 6C9052013E; Tue, 18 Apr 2023 13:54:10 +0200 (CEST) Received: from samy by begin.home with local (Exim 4.96) (envelope-from ) id 1pojuT-00Bypv-39; Tue, 18 Apr 2023 13:54:09 +0200 Date: Tue, 18 Apr 2023 13:54:09 +0200 From: Samuel Thibault To: Guillaume Nault 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: <20230418115409.aqsqi6pa4s4nhwgs@begin> Mail-Followup-To: Samuel Thibault , Guillaume Nault , 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> <20230418085323.h6xij7w6d2o4kxxi@begin> <20230418091148.hh3b52zceacduex6@begin> <20230418103140.cps6csryl2xhrazz@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 Guillaume Nault, le mar. 18 avril 2023 13:25:38 +0200, a ecrit: > As I said in my previous reply, a simple L2TP example that goes until PPP > channel and unit creation is fine. But any more advanced use of the PPP > API should be documented in the PPP documentation. When it's really advanced, yes. But here it's just about tunnel bridging, which is a very common L2TP thing to do. > I mean, these files document the API of their corresponding modules, > their scope should be limitted to that (the PPP and L2TP layers are > really different). I wouldn't call + ret = ioctl(ppp_chan_fd, PPPIOCBRIDGECHAN, &chindx2); + close(ppp_chan_fd); + if (ret < 0) + return -errno; documentation... > That shouldn't preclude anyone from describing how to combine L2TP, PPP > and others to cover more advanced use cases. It's just better done in a > different file. A more complete example, yes. I don't plan on taking time to do it. Samuel