Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp894576rdb; Fri, 17 Nov 2023 16:40:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFW1sel+69vk/FB55yFXOslExjokmssMSGUIPKnrJVRYXBgXUpa/7PiZZccEyBB/anUFeAj X-Received: by 2002:a05:6a00:1402:b0:68a:4bef:5f9a with SMTP id l2-20020a056a00140200b0068a4bef5f9amr1309890pfu.0.1700268002416; Fri, 17 Nov 2023 16:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700268002; cv=none; d=google.com; s=arc-20160816; b=pyQlo+l7zs6s/GDeQL1vymzX8NZxoldhIL5RTeJuq83D4EwYOhPMYRnG7hfjTIdYb1 SzDjCXrBDIkWiwxnRIRYoydFWxH7phrZ/8B0y9U9sRRV5XEe20KDhqAHAIw0jXM06owP ts0zUwW9vsQKsTvP+y4zCTyzaSpFfWkdh3yETxljxhqwb/VnHgztjy+Ht5/5rEBLB13Q yjOVGR/YOXI60qNMPg50ldlFU67INt6rhvNZ7hw885eJjqJ0RRQ7J4wm/Dd25u1d2dMn +uFHF7gt322ioJwOXgUjyLajayorRQqxvUyQWy1wbPJAP5/p2iiEBChS1wfmF8Mw/7i3 EGvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=YO2N1jkGeAD2731Q1W6WsR2JUyK71LjeMMu+qYtpxJw=; fh=N55phfQcZIhRdM/k54g0Wu0R/OxY6+1PmMN8ZsfyP1Q=; b=XX/s33cLXkzmf6V8RpleX1Voedc4kb4bddhxKXF0mqTbI/cd7NU9eeo9VbbSzQMQPq Ht8aqd9SAe5AG0n3hBCRY1SFobCodCguQ39LHm3kE6Za9UzC3J932g4IlWpn1GmUpSRY 4TNhoCbkgUKmNrrKp7FjavjYagEYxT1u8xfG+7fSgeT6V5Gw/Du+A5OZDcq6cO+w5FWm lqjCQAXsob8Id3+U7leBc0QpycL6UZ5tTYb1Zf01DZC+73CS/LtPSptIz8VwquSTN9zd 104SganCGmbcUI9lYwfRpJ+gng54RI2xq/yFiVnboV2oC3b+M7RUBbfiwIE1LglWAMUa OkXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IiRkNMZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h2-20020a056a00170200b0069026254582si3125674pfc.98.2023.11.17.16.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 16:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IiRkNMZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AD9978385ECF; Fri, 17 Nov 2023 16:39:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234364AbjKRAjp (ORCPT + 99 others); Fri, 17 Nov 2023 19:39:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232530AbjKRAjo (ORCPT ); Fri, 17 Nov 2023 19:39:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBA910C6 for ; Fri, 17 Nov 2023 16:39:41 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA6F8C433C7; Sat, 18 Nov 2023 00:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700267981; bh=Je/ApF2K7SYvSPIxFVB5Me2FUgzHHhsUTSYdaPeNC2M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IiRkNMZEHCZKk9mAEgz3XMwp/Kpr1kMZDf5cAY6rG5HeZZDPzixvMd8qR6Fj8xuFD cZqwHUjLKhh2b1MGD4eETVLU/2Bchjyb1yqxJL0X4/cf16yqpnAN3AcaURv+uNDNNa T/6M6T/aO9SSqKVhXMXSTjgy5BCB3CIRQut3i0KoAllyNEh+d6BhNb0dfKCGv+GbsF r6Qp0qCQ7GaWaPnhc2x5B4L0eSzAT1mWQ1HIiAgGoN9AQRC4invZO4owDjYwXRSfpw 0JWb7TKjy3qlzWhfyvOxzr6FqW759agQIXUTWV0my+k4T2//Lx1iLWA66ymCW5pgx8 7djxeRIbw8KmQ== Date: Fri, 17 Nov 2023 16:39:39 -0800 From: Jakub Kicinski To: leit@meta.com Cc: Jonathan Corbet , Breno Leitao , netdev@vger.kernel.org, donald.hunter@gmail.com, linux-doc@vger.kernel.org, pabeni@redhat.com, edumazet@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Documentation: Document each netlink family Message-ID: <20231117163939.2de33e83@kernel.org> In-Reply-To: <87y1ew6n4x.fsf@meer.lwn.net> References: <20231113202936.242308-1-leitao@debian.org> <87y1ew6n4x.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 16:39:59 -0800 (PST) On Fri, 17 Nov 2023 15:17:02 -0700 Jonathan Corbet wrote: > In principle I like this approach better. There is one problem, though: > > - In current kernels, on my machine, "make htmldocs" when nothing has > changed takes about 6s to complete. > > - With this patch applied, it takes a little over 5 *minutes*. > > Without having delved into it too far, I am guessing that the > unconditional recreation of the netlink RST files is causing the rebuild > of much of the documentation. Even so, I don't quite get it. > > That, clearly, would need to be fixed before this can go in. FWIW on the C code-gen side we avoid touching the files if nothing changed both at the Makefile level: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/tools/net/ynl/generated/Makefile#n28 And the tool itself actually generates to a tempfile and compares if the output changed: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=2b7ac0c87d985c92e519995853c52b9649ea4b07