From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8408D171D6 for ; Thu, 25 May 2023 15:27:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7301AC433EF; Thu, 25 May 2023 15:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685028425; bh=aFdNsYlQ+SeXOzak6xT5A2/VMZ0jqKm47vjavk9WCJg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JRCIvRw5wQ/RlI0eepRPP8lKUbxOET4mEbod8N31GXZuxK4J/1VkvlGLuoszYnw7y oYtVkouIVEtFnc+5mSXzwUC2k/JpctdSRcbXUCqvtEUtkpM5oQ9EEMCM+dgUSvDOKS Bif9yfbKUiDifh3YCCn+6SMMT9gAbYoucxPg8KIGUmqj3rwbiGkVx/8Sr2Swa1vCOt de6NaFq0grB+CfaiSrh9nRZ71WdEKkT5xXQDfgUVa5WxkinTucmASU5t1wMl3vfHRG co1fUOz8NHx3RIBS+MU/YZU2yKjbGbFm18/DOkqjIFBNmjgMlqCP+CHxOJXh4pU3Kn PXgODA81IzDCw== Date: Thu, 25 May 2023 08:27:03 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: netdev@vger.kernel.org, pabeni@redhat.com, davem@davemloft.net, edumazet@google.com, leon@kernel.org, saeedm@nvidia.com, moshe@nvidia.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, tariqt@nvidia.com, idosch@nvidia.com, petrm@nvidia.com, simon.horman@corigine.com, ecree.xilinx@gmail.com, habetsm.xilinx@gmail.com, michal.wilczynski@intel.com, jacob.e.keller@intel.com Subject: Re: [patch net-next 05/15] devlink: move port_split/unsplit() ops into devlink_port_ops Message-ID: <20230525082703.0922dab0@kernel.org> In-Reply-To: References: <20230524121836.2070879-1-jiri@resnulli.us> <20230524121836.2070879-6-jiri@resnulli.us> <20230524215301.02ae701e@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 25 May 2023 08:05:22 +0200 Jiri Pirko wrote: > >I think it's because every time I look at struct net_device_ops > >a little part of me gives up. > > Does this work? I checked the existing layout of devlink_ops and the > internal comments are ignored by kdoc. Actually the whole devlink_ops > struct is omitted in kdoc. See: > $ scripts/kernel-doc include/net/devlink.h Hm, it should work, it's documented as a legal way to kdoc: https://www.kernel.org/doc/html/next/doc-guide/kernel-doc.html#in-line-member-documentation-comments We should ask Jon if you're sure it's broken.