Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1065823rdb; Tue, 30 Jan 2024 07:04:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFevc7M/H4qExbB4Jl0D0/KA9+fSsYhUpL8a8Ub7TsRQ1w2XauzuX65/bVupREeBYb0WEkS X-Received: by 2002:ac8:5d07:0:b0:42a:74bc:5b1d with SMTP id f7-20020ac85d07000000b0042a74bc5b1dmr12066542qtx.2.1706627051702; Tue, 30 Jan 2024 07:04:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706627051; cv=pass; d=google.com; s=arc-20160816; b=z0KYRY/CrJqFqZXp+zXSU0IHzr83m9cmx6N+biuhRZowcUr1TW4B0by3HZR0zxAFDL o7iuQKiHHwV22k91DL4Lomd5aozR7m/Nb6FB+8zDFTUfz74gVHjhnWxYQv5er3+yNAes o+NJC3Fq2wGBn+UXQf9Z18whdB/A4qFV6D8cMejgKWoXt64xbrvIBBKqE5kZeo56y1ZC rehDSFu5kq9RogokQ0/RzmsnoxM8vupfSGzF6EFY+ajrutsODs5omToyIbudG40qmbrZ cyjwZjB5h1BGElx5NDrH4Pt7ceh4U6Jywko1PuIGvpeETblmiAczes9N3aLtx2D+Vpi3 F9Yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=00FPpWbhr564l5JKWnJhHxHN8KJOuw0rMT8oypHBGL4=; fh=LLeKblmZi7t/yn6PhjOHWytS2rKfw46U0Iz8dhpEz3k=; b=aSKkXS2Z3XcJS/EQGMTQXYo5icqFrIF1wcN6ZVudmLW3GTVGH1Y5XQsEJkPACEqy/f sdeVrEraxCf2tKg7XgCf9Y7/SFQhofAP8TirX4qWF8tIg/R5XnP4rPVfCrZcsjM4k+NI wCDMDXvHZCGC+sEsSh6AqtnTkyBqdfaLYiaPTiu2RSLJIzcJOcH28OByPjWtYMVHxUT+ Ac+eSzksXpJtVjngF9J6swSL3OjoPTPrTEwm3P0chRVMUeF4E+IyfDUZ7WTCoAAS+RoC sjmTazSC/64hFdwRUX4jFAptEuUTwNxAuT2Fa03Y0d1MOpp/NeX94e/JoMXVdhpYrXNr 3Izw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zc9UAHgY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-44794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l23-20020ae9f017000000b00783571b7509si9892135qkg.483.2024.01.30.07.04.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 07:04:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zc9UAHgY; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-44794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4ACFC1C21375 for ; Tue, 30 Jan 2024 15:04:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44A2181AAE; Tue, 30 Jan 2024 15:04:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Zc9UAHgY" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC41E60ED9; Tue, 30 Jan 2024 15:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706627040; cv=none; b=NeZzftfeqSVPzSb9bS9VV5UN+S19umwWER/4dxrE3iN/prTYlRwWg+KDZ3nVjEBVxH4I5cI/z7VN66dOw2e4zi37gazkvxd3tR7Y6tz/9yUsK+CwcpqyG32W/fy+SvA+Mk2CpnLBB4LzaHEu9aaiwnXi04MptKtiBoataz9Cxi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706627040; c=relaxed/simple; bh=//kFKSouwAE4cOJHqMCMPzz68JKEdAOc+2/aJyyBShg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kvXDYBoXPQk0uz58oFJ8SPKEMAOo9gWIyFCGWx6CDJJZrOKGXg2mVX/nn9IrSh010SUofWe8kk2vxq5QJ6+pj/mjPfkqhG90IAKzblsAo42ilXERFZvB96R6RRia1iniCMVR9cznUJFnAnRUNKlJ+PZ62XwZTpOdmyeoo7hc054= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Zc9UAHgY; arc=none smtp.client-ip=192.55.52.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706627038; x=1738163038; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=//kFKSouwAE4cOJHqMCMPzz68JKEdAOc+2/aJyyBShg=; b=Zc9UAHgYXO5H5YGJDKCAZBhjsb+3IgMIbOZbsvYn2UGiqn664d9+Muh3 ilGokoDwLX4hf/B5XKFVoVcFq/HZszEFC6nb2dl4ReJRbZWx3YFG3wORX 6oepYk9i7gl6eQAncKFDdq4eJIl0Cxo/qJD9clKVLO7O8n0ImiALW4uxj 3F/rUCjCh48oqD+D0s01iFHZ2ZdABN6GxcgL8Ba7103GQgkPV8a9k9PD3 lJMEyUugp/N6V2SjQsrMk7qxYbDqFyhe98Kjg08JlvtjWck/1MTiMgRuf 55qQj/uYn/ekdnzyM42EFw8HhMnZuP3vSj3RmCnvz8FwlWF5j/E2RQ1OP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="434478342" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="434478342" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 07:03:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="737803418" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="737803418" Received: from dcarleto-mobl.ger.corp.intel.com (HELO localhost) ([10.252.59.176]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 07:03:53 -0800 From: Jani Nikula To: Jonathan Corbet , Breno Leitao , kuba@kernel.org, "David S. Miller" Cc: linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, edumazet@google.com Subject: Re: [PATCH v3] Documentation: Document each netlink family In-Reply-To: <87jznqewa7.fsf@meer.lwn.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20231121114831.3033560-1-leitao@debian.org> <874jevjgvo.fsf@intel.com> <87jznqewa7.fsf@meer.lwn.net> Date: Tue, 30 Jan 2024 17:03:50 +0200 Message-ID: <87wmrqj221.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, 30 Jan 2024, Jonathan Corbet wrote: > Jani Nikula writes: > >> On Tue, 21 Nov 2023, Breno Leitao wrote: >>> This is a simple script that parses the Netlink YAML spec files >>> (Documentation/netlink/specs/), and generates RST files to be rendered >>> in the Network -> Netlink Specification documentation page. >> >> First of all, my boilerplate complaint: All extra processing for Sphinx >> should really be done using Sphinx extensions instead of adding Makefile >> hacks. I don't think it's sustainable to keep adding this stuff. We >> chose Sphinx because it is extensible, and to avoid the Rube Goldberg >> machine that the previous documentation build system was. > > So I feel like we've (me included) have kind of sent Breno around in > circles on this one. This *was* implemented as an extension once: > > https://lore.kernel.org/netdev/20231103135622.250314-1-leitao@debian.org/ > > At that time it seemed too complex, and I thought that an external > script would lead to a simpler implementation overall. Perhaps I was > wrong. > > I worry that a proliferation of extensions adds its own sort of > complexity and hazards - look at the things Vegard has fixed recently, > for example. If we're talking about the same things, I think one of the main problems there was shelling out to an external script while it could all have been trivially implemented directly in the extension. ;) > Relatively few people can work in that environment, and > extensions can make our version-support troubles worse. So I'm not > fully sold on the idea that everything should be an extension, > especially if it can be expressed as a simple dependency and build step > in the makefile. I think we're just going to have to agree to disagree here. And, ultimately, it's your call as the documentation maintainer. I'm sure some individual things are simple to put in the makefiles, but I believe overall the entire thing would be simpler if we avoided that. > Some of the uglier makefile stuff we have is a different story... > > Anyway, I apologize for my role in making this particular addition > harder than it needed to be. Perhaps, for the future, we should put > together and agree on a document (of all things) on how we think this > sort of functionality should be added. Perhaps. The problem at hand, though, is that after 'make O=/path/to/build htmldocs' I have this cruft in my source tree: $ git ls-files -oi --exclude-per-directory=.gitignore Documentation/networking/netlink_spec/devlink.rst Documentation/networking/netlink_spec/dpll.rst Documentation/networking/netlink_spec/ethtool.rst Documentation/networking/netlink_spec/fou.rst Documentation/networking/netlink_spec/handshake.rst Documentation/networking/netlink_spec/index.rst Documentation/networking/netlink_spec/mptcp_pm.rst Documentation/networking/netlink_spec/netdev.rst Documentation/networking/netlink_spec/nfsd.rst Documentation/networking/netlink_spec/ovs_datapath.rst Documentation/networking/netlink_spec/ovs_flow.rst Documentation/networking/netlink_spec/ovs_vport.rst Documentation/networking/netlink_spec/rt_addr.rst Documentation/networking/netlink_spec/rt_link.rst Documentation/networking/netlink_spec/rt_route.rst Documentation/networking/netlink_spec/tc.rst I'm not even sure what the best way to fix that would be. (Apart from turning it into an extension, of course. ;) BR, Jani. -- Jani Nikula, Intel