Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp303521rdf; Tue, 21 Nov 2023 03:18:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoyyqJRhnbjPZQ0DWgC5aLTAd9j1wrVxmTWZksrj8CrT7Df847cZdtC3OY5RjuRlHItZCq X-Received: by 2002:a05:6808:128d:b0:3a7:6d4a:fd78 with SMTP id a13-20020a056808128d00b003a76d4afd78mr13935277oiw.24.1700565493714; Tue, 21 Nov 2023 03:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700565493; cv=none; d=google.com; s=arc-20160816; b=KgAUvgiDX5oQAHFOkqmhQ+7/yYnCOyFBIp8JEY5xDVcAvbBrBd1FIbfQZrJa6xSznw FP4LpxXfxh+cjTITRp1jsdVnJT/1lddayoeLStYWUiRsiBaFB26+WXACPCzxAyOARn+I XhPRCLtWyeiAUFn7cZpL/WXmvf5iJbAfiGh7dbDLWa8YH4Rj3+9qwNtxOUlNbAmftXJh b9SP+fxyxNPfHpxCP8QGkaVqIlg2OATq6bpjAz/UrGIKfFRQ6l0tqhH1l30TS2YeN/DR o8B9J+beR8zyclwCmCLp2fuqOvb8NRJqpL9Vix9ix8PCyGvKKQ+rplBSyXhlNHiGtjrb PvjQ== 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:cc:to:from:date; bh=NbfqKc92HY0GWFqXRpFHBsFHHapn1hVDYmvSnYYYEf8=; fh=+aLOTbjmpXY3XIXTi669IRRUKQd5ILEDDqbNf7f5HtM=; b=uTPxmaGAklIXnAC3CgmVE7NJAEJsvLkaBavz6Z6umrLkQDwZq+kh4JgQKJwJDiFIaJ FtnzDCHQKE2beVoXpbf11Bzh26oM8ax0uTiYF1TL0W+4C0u28My81RBbf2TrhbotoKtV J44Id06fSoDMG5+iCnO/tYvDan6q+L+DmCJOZRCLlXL1JknKm7Y+wOU2aZ8V0HLYP0+k LzwRkryU0Dzo+D+BC1sCYsgpV7xgJ7Hgm7bp12efdSA8+X8D8oXkqOPa9hxiL/RwnBrs qZaNAdRvsPFnuITEulBc3KfVLYgd8u9JAq2UgYKTXzqZc0DEkvnzeLOhpND7xtZsgwR/ alkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b19-20020a63d313000000b005c1cc9caf0asi10668843pgg.899.2023.11.21.03.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 03:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0F12080320E4; Tue, 21 Nov 2023 03:18:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231909AbjKULSD (ORCPT + 99 others); Tue, 21 Nov 2023 06:18:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKULSC (ORCPT ); Tue, 21 Nov 2023 06:18:02 -0500 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEED59C; Tue, 21 Nov 2023 03:17:57 -0800 (PST) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-548c548c40aso3392981a12.0; Tue, 21 Nov 2023 03:17:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700565476; x=1701170276; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NbfqKc92HY0GWFqXRpFHBsFHHapn1hVDYmvSnYYYEf8=; b=d0qEiUJTMvQW/UJT/2zkzoCmPmfHFBMxhQTArfwM2LMEKekB/74f7LSpe1VKwJTofV Ytg+L/gBsjTitDVzu4gexkaXmdIwsNv8e5ykA8zsQ4ehVTBbc02DjxTZO0onp80GVHWO Qmz7sylSec4aUM/EaoynrhvFQdLFNLLMZgYv9ZAiuJDJL9v3GfyKwPH84OJofUqmKl/Y jgHnukadimn+GUbQPJ1N4D0M5NYm4wkobz88yOeheYi/WwHUPTmyhSgY/ifDZz7MaLSo 8XZ5rfLCnuKSmBuJrjRDBSKoPegwps79dlZygKRu1qYzbH27Y9VbsAK9MgxmAIT0ReVN Qsqg== X-Gm-Message-State: AOJu0YzeWksLlP5nZ2j5Kgiqk6UbDAs23Zb4AqXBdEuBTqkv7krRyZjR dN8mWZaHYJSRuLDI3szJY5w= X-Received: by 2002:a17:906:3c17:b0:9ad:8a9e:23ee with SMTP id h23-20020a1709063c1700b009ad8a9e23eemr2121676ejg.13.1700565475979; Tue, 21 Nov 2023 03:17:55 -0800 (PST) Received: from gmail.com (fwdproxy-cln-016.fbsv.net. [2a03:2880:31ff:10::face:b00c]) by smtp.gmail.com with ESMTPSA id i9-20020a170906250900b009ca522853ecsm5110945ejb.58.2023.11.21.03.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 03:17:55 -0800 (PST) Date: Tue, 21 Nov 2023 03:17:53 -0800 From: Breno Leitao To: Jakub Kicinski Cc: leit@meta.com, Jonathan Corbet , 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: References: <20231113202936.242308-1-leitao@debian.org> <87y1ew6n4x.fsf@meer.lwn.net> <20231117163939.2de33e83@kernel.org> <20231120120706.40766380@kernel.org> <20231120131424.18187f0e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120131424.18187f0e@kernel.org> X-Spam-Status: No, score=0.5 required=5.0 tests=FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 03:18:11 -0800 (PST) On Mon, Nov 20, 2023 at 01:14:24PM -0800, Jakub Kicinski wrote: > On Mon, 20 Nov 2023 12:43:11 -0800 Breno Leitao wrote: > > > %.rst: $(YNL_YAML_DIR)/%.yaml > > > $(YNL_TOOL) -i $< -o $@ > > > > That is basically what it does now in the current implementation, but, > > you don't need to pass the full path and no output file, since it knows > > where to get the file and where to save it to. > > > > If you are curious about the current python script, I've pushed it here: > > https://github.com/leitao/linux/blob/netdev_discuss/tools/net/ynl/ynl-gen-rst.py > > > > I can easily remove the paths inside the python file and only keep it in > > the Makefile, so, we can use -i $< and -o $@. > > I think switching to -i / -o with full paths and removing the paths > from the generator is worthwhile. > > We'll need to call the generator for another place sooner or later. I do agree with you. Let me update and send a V3 with these changes.