Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5184677rwe; Tue, 18 Apr 2023 03:23:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ah7hkFEPHh5tMIONPKgXuboM+kk0Mp7QK/h4ps+bU8JvT5POLxiCgNRdcaeAG4j7WUcKEz X-Received: by 2002:a05:6a20:394c:b0:ee:cc76:5023 with SMTP id r12-20020a056a20394c00b000eecc765023mr14488285pzg.22.1681813431726; Tue, 18 Apr 2023 03:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681813431; cv=none; d=google.com; s=arc-20160816; b=QdzR7a2vGNlI2CZvdH7uUpM+lLRsLkhKSj2nzbZ4WmH7mstBcXoWSLNZ2KrxDy+gRu mrvfdwNVKnn6xGuLpCt1cvsDiM0xFSGZuI98U5aYsu/Hz58oW9Rd0hDtSuHHbbNAoLP8 hqMqnYVRUp6L8d9aowcYl2kQRnOCVUUaI5uORXrXQgMt1av2UzRETeykgydbnwWXqZqH FY6J5GGKc4q6KTsUUcFc3MhGhKRqDc+i0c6KMaRSdok26tLbU2LpOWL+Wb4EkVyM+gJJ AMIF/E8/nzjPzZfSMPBQtxZk5xUdwd73gpTSR0ncWDleseMhBo7w/SAv3Bi0nThFR/Z1 N9XQ== 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-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=MG0Nr2BMXXdUPGLSdXJQNTH3SV8FDEpzwmgkuk+rqoY=; b=zT5huiPbYLPjDOmoVadRAjBxg+vPeC7ZoLdgRqfwFJqpAYYLzJwIxMLuqE9uVwdvVN 8SFejO++cVHqGBHiDroH5wx3vlattY4QxUcCrBXiSbglPE664Kdh9nIcfACoK33+p8uz UICS+9YkeGLv9KyXhnlvbP5I47w6pOqij1gll4S4vMAYreOywInoNLifmIlGXvOiJcFH i7a0naJAvxgJvnGzT4IDqw5/m4eXdqIaavNQrXoTW+liP5iPnMMFVR7m0NrYjSuPNvGF NyIgQp4xRDgb9H+sI08MSbxLiu3+Q19uttm4nF5yWB9cFsYfB7o+XY8/9IC+Ns4hjnJ2 jYCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IuAYB32C; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a631d09000000b0051b4db5fd75si13273640pgd.850.2023.04.18.03.23.38; Tue, 18 Apr 2023 03:23:51 -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=@redhat.com header.s=mimecast20190719 header.b=IuAYB32C; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjDRKTA (ORCPT + 99 others); Tue, 18 Apr 2023 06:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbjDRKSv (ORCPT ); Tue, 18 Apr 2023 06:18:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0246A7ABC for ; Tue, 18 Apr 2023 03:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681813081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MG0Nr2BMXXdUPGLSdXJQNTH3SV8FDEpzwmgkuk+rqoY=; b=IuAYB32CiihbOyX452xUqm2oGGadRoE+R7KfEbV64D0sUjrW4piWuu7iVeeWai6NuTrbYA OF74GXfU9YcQm5jLuDriLEUjhfn4zCLifMl7zYauoOhJHxT1gQb+FToz9ndrihBued6b/e nE5p4OXRv+A25XtRqIBRuHWPlk/hMx8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-290-GAXSX2ZZNRabgst8UTRgLA-1; Tue, 18 Apr 2023 06:18:00 -0400 X-MC-Unique: GAXSX2ZZNRabgst8UTRgLA-1 Received: by mail-wm1-f69.google.com with SMTP id ay3-20020a05600c1e0300b003f1728ce786so3418235wmb.7 for ; Tue, 18 Apr 2023 03:17:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681813078; x=1684405078; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MG0Nr2BMXXdUPGLSdXJQNTH3SV8FDEpzwmgkuk+rqoY=; b=ek+eMZ5KbGl3QwRIjk3j/IJHVcLqfYRJHTuVRxw8qMt7IEpJJOnGeD4rtTdSvhvyS5 qmNcgIR38mGyB8TDvq/uvQXNRFD2DTW5mQCXTK2W/r/BjATd+451TUHqGQ0vODGryiG+ mvdWM5TY2lqS5/njqNKZegyyt5xystGqNmcCchuF7ajKXy6L3yNMB8IhAMdMFiesyW8D x+VMjmMMmiimMQYHVHeqAv6/6dJFIT+I7LvHFz17DgPbWdAperEHcbpsvkt0mNVSfTBp UOmhWPKy1moA/awygsWFfpGiCiZsI7OL0fU+M2A+/0jngaTHcnY4FCjqGRQD3cXCxej0 rBXQ== X-Gm-Message-State: AAQBX9fkgnntEelg6dWQR7IwOc0Erb1lyPeSWyZPilbdI1zQ+Kyor/gt R4vNmAXSZ2lZSCAwDlyRoKtpgVKUjkwEsIs7c5tL3tuvmYAbQbHFWUw5AK4lLjhvn8mdKHUtELQ PxNQpp1PQFkS0H0G+G/NPTZ2gWyBHbHT5 X-Received: by 2002:a05:600c:cf:b0:3f1:6ec5:bc6f with SMTP id u15-20020a05600c00cf00b003f16ec5bc6fmr7229578wmm.24.1681813078644; Tue, 18 Apr 2023 03:17:58 -0700 (PDT) X-Received: by 2002:a05:600c:cf:b0:3f1:6ec5:bc6f with SMTP id u15-20020a05600c00cf00b003f16ec5bc6fmr7229554wmm.24.1681813078298; Tue, 18 Apr 2023 03:17:58 -0700 (PDT) Received: from debian ([92.62.32.42]) by smtp.gmail.com with ESMTPSA id a8-20020a5d4568000000b002f61f08a9a6sm12351042wrc.50.2023.04.18.03.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 03:17:57 -0700 (PDT) Date: Tue, 18 Apr 2023 12:17:55 +0200 From: Guillaume Nault To: Samuel Thibault , 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: References: <20230416220704.xqk4q6uwjbujnqpv@begin> <20230418085323.h6xij7w6d2o4kxxi@begin> <20230418091148.hh3b52zceacduex6@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418091148.hh3b52zceacduex6@begin> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Tue, Apr 18, 2023 at 11:11:48AM +0200, Samuel Thibault wrote: > Guillaume Nault, le mar. 18 avril 2023 11:06:51 +0200, a ecrit: > > On Tue, Apr 18, 2023 at 10:53:23AM +0200, Samuel Thibault wrote: > > > Guillaume Nault, le mar. 18 avril 2023 10:34:03 +0200, a ecrit: > > > > PPPIOCBRIDGECHAN's description > > > > belongs to Documentation/networking/ppp_generic.rst, where it's already > > > > documented. > > > > > > Yes but that's hard to find out when you're looking from the L2TP end. > > > > That's why I proposed linking to ppp_generic.rst. > > Yes, but it's still not obvious to L2TP people that it's a ppp channel > that you have to bridge. Really, having that 20-line snippet available > would have saved me some head-scratching time. But the reverse is also true: someone looking at the PPP documentation is probably not going to realise that PPP sample code have been put in the L2TP doc. We can instead add PPP specific code in the PPP documentation. Then add a line in l2tp.rst saying something like "Handling of the PPP layer is described in ppp_generic." If you feel like having sample code for a full example covering the whole process of creating and setting up the file descriptiors needed for bridging PPP channels (UDP, L2TP tunnels, L2TP sessions and PPP channels, and why not PPPoE), then I feel a specific file would be more indicated, as this would cross several different subsystems. It'd be okay to to have a few PPP-specific calls in l2tp.rst since L2TPv2 is tied to PPP and that could give a more complete example of how to use the L2TP uAPI. But that should be limitted to the most basic PPP features (creating a channel and a unit). > Samuel >