Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2520388rdb; Mon, 20 Nov 2023 13:14:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEupjnGRuTI42AcfmDEPjCCGGSNZA4mBPnotklOVhtt72ZNFhhIiYl5ToEx1nTomc8C6bwp X-Received: by 2002:a05:6a00:189b:b0:6c3:720a:157a with SMTP id x27-20020a056a00189b00b006c3720a157amr10088787pfh.12.1700514893290; Mon, 20 Nov 2023 13:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700514893; cv=none; d=google.com; s=arc-20160816; b=YqlIKkHXs841x9qa3VFBwGdyQOXpVTI7CrzO7u+aqV5WgVs8RHqmQQ9WvmL3Bqbtaq mAF9GOVKE5bYm/y4NAGzyldgxxkqoM5pTMfWSZWrSuwTX+wP+dOUYtCGVWM7d2R4u0d6 c6pBGdUVPCDG7+2tA8Ji2bEaPs0aSDlCUSh+ypUrsL98b+8TTCcobpk9MxIgiHtfnQTT NzAT1XAEu5jcIIqoA1Pf0l7MqUeC1/t0Elx1GL0zO9ubjGiK4Eb7XvFCmlMUX3Yz8kgX lxEa06D0hoOw9x+wgnrFiIA3qx35xQt0yHgDrWoON0ZVdUieIHJpGzuUNgoFQ/HYPz+W uzPA== 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=bZI17jgguupsuoM5ruu+UXIyDwb10EgS0UlAjA5X8Fo=; fh=s0xr5j2kTUnOCZ9yQASA7lTohKnzvD4HNDSGPH5XzLQ=; b=Ok9RP5HspxM28vPjYq2k8ndN+JhaHfLefPLvX+rHFRa/ENOSjsvcBxzwPj/WQZ4rmy tkIx/8ko1wkZvtP2LOPvhWBMR0oJIFDxXseoo5XNkaUhcEpIpMH2Ul9Aj/jRiySDEoxD SdeSukkgbh5B0tju9tqMphL8KjliS03Vhw2RAi6AwCAJogi5jmLlF9dqo6v6WwqlETF2 7u/QNiIMluE/Xyj71k9VlWGWr4dB4FsH/JpKL5pPp5pHhtZ3JcjMZ1+9oUuDsy9Cn3Tc eY/ieHKLZYvBM4U81xYtGtl3yssN0RssMenExN9Tu2uu+/TPsf7f/492i7JXIk6maw3G VTgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DrHmb5wf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b14-20020a631b4e000000b005859c255ce9si8919628pgm.861.2023.11.20.13.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:14:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DrHmb5wf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id DDABD8035ACD; Mon, 20 Nov 2023 13:14:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbjKTVOa (ORCPT + 99 others); Mon, 20 Nov 2023 16:14:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjKTVO3 (ORCPT ); Mon, 20 Nov 2023 16:14:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84535C4 for ; Mon, 20 Nov 2023 13:14:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C41E9C433C8; Mon, 20 Nov 2023 21:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700514866; bh=487b6FPg1xIDbQ/pxGNTb0FaznMLNOH9vYL7GyLQj/Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DrHmb5wfqN3Pyv3DZTA9D7EOZFwsXaWEIYQisXe4v8zskMyB23kwACppmYc+TowL4 +5W+RGy0YZ4l5KYY74eChIm8T6nPU6wavkenXC3V1MhqO5l7TZazKiqGKAgMBaRFxE URVHqwpigvtwwoMaHsFiZiVOaUxRtl7VS7wW0W/YfueSAR+dd63U4ltDl+GUlfQ12c xRl0Z6mni2E2WLMJJNYvCJ4KRCP6hZDsjLzLWo6mqExsVnbRjQ8V+bZ2oVQjEXy+oZ SNPrNwJ0WdGuyGVy8A1P6WXojPOrWkb6wq9lWdgtDWCwpQYHXUw4068dUjf+YCpPun pkDsx/FzpTLVQ== Date: Mon, 20 Nov 2023 13:14:24 -0800 From: Jakub Kicinski To: Breno Leitao 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: <20231120131424.18187f0e@kernel.org> In-Reply-To: References: <20231113202936.242308-1-leitao@debian.org> <87y1ew6n4x.fsf@meer.lwn.net> <20231117163939.2de33e83@kernel.org> <20231120120706.40766380@kernel.org> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 13:14:37 -0800 (PST) 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.