Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp52215rdb; Wed, 21 Feb 2024 17:00:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWUdiVwWwF78ltq8zIAEOnhmUIuGXMoF5NNfZrpKbp/sGdIyz842gJyvEp0TxgPhS2lsDB10DKubIONtkZaaQLmPEVMDoVDYbFuSglVbA== X-Google-Smtp-Source: AGHT+IFgrqnu+2gReyn/8nGgapwn65U2ON0Cyghkk8WrgZcXMhTTnt8iniK/wZRpbqgdo/I0gxq/ X-Received: by 2002:a17:90a:7341:b0:299:c5a5:cd58 with SMTP id j1-20020a17090a734100b00299c5a5cd58mr8253735pjs.21.1708563636276; Wed, 21 Feb 2024 17:00:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708563636; cv=pass; d=google.com; s=arc-20160816; b=P+SlG6B80GSWk7FaGd5JsQcW2lHS8d7xdYtQ3+xKg+pcOrCKaafXnjCQYpFghVWiV6 utxGnpqnBPHTlnjaIkdgzk3dD0jGgDFKP54ELkejDiWMZsXcV2RqxXWVQNuYBed2MxVT a+QJxJJYQK8wQLHEpffEBJMegVPUsmeYfGLrAvOpKlbgsgLht7U4SA4VCOA6ahLUfw8+ XRpTvcYm+DiQG/6FK/4HqkAzb9pOQyRcn61Ni9DV/IGA9qnHEASUdth++GWSrYLqdmmC 1+/AEzKbivPPO3XYfCnAZ1Im6Jo1xRUdEIRgpuPMkGOf/y/5/h6Yxx61yUFEbpDnlpWr 9NJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=iNbUyt1d215GAjBLQmJGP12/AP/dKT3LRXATImMY7H0=; fh=g8oKSg7TGHC7zYy1ERdWUzNSqrLtqEim99JpRljDKTA=; b=poGzFJ3FhrjbQwVLCWRluFSRH3VXslNGKGahus7aXGyyXg7n6h+rJVi3u87pytBEE8 02dXIkLGMWK6RMVX6xkzwIAj2PZ5nxqCKnZE8O4anukgjNUI1dS1gczFVquv9jKm+N4v au0Hi2O7PN6F017025FAZgxz4Z2jhYoPTFzcIgZOQpWqAMevv2VHTzPQZPWOc3XYMnM3 fAfp/YYMtS/ebV4rdzzsVSKJcAGHuMFT3Ve2CET6woqUkbl3mD8AVqNkbxSOIAcwAfIF 33lTM07IFimG5Ez+vvWRPW0OQXcdmrBQ5s+pm14P1n5PYNTMA3c828EOEI1HVNtVP4lB YN7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ogw8MftI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i3-20020a17090acf8300b0028e79d4c104si2498094pju.131.2024.02.21.17.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 17:00:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ogw8MftI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 004D9283E0F for ; Thu, 22 Feb 2024 01:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C70111C92; Thu, 22 Feb 2024 01:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ogw8MftI" 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 8F8CA28EF; Thu, 22 Feb 2024 01:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708563625; cv=none; b=rk0wrZGw5sgMLM0GwwIcLeyuUGIxzSw6L5ZxJASl5rZsRA1TY5uZwC9dfOz0BIixmPs+ykw7dFS8iyNG4kdlANCvo92x7ipzE/IQbwv8iARBKcUUM7D01F+0DUPAmdJMujfpyKaXRfPBoO+UlC99enQL66znMRS7R+WXOTG7GKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708563625; c=relaxed/simple; bh=ggpfbAk/8v/uRbo53fh+Pe5sfNyqrpSgwKHDrVgb8PQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qgs1x/ig8oAq5TtvTv2CV9dll5kvw13n+/V0Svb2HBKVauPr9g4bYOh98wxUBwgqRmD+foIlB9rj0Jq0HRuZrgKf4ldoUK2gOGSf6723R0+FunUTRvNkdKktBb8SPehdkE511G1STjJyfABVInHGoVqoctrhs+RdF+xFJOhhkHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ogw8MftI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E85C433C7; Thu, 22 Feb 2024 01:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708563625; bh=ggpfbAk/8v/uRbo53fh+Pe5sfNyqrpSgwKHDrVgb8PQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ogw8MftII1she2XJ/vthGAOx21yXJm/UADxrQwTaBYHTGurb4Bl5WhdgC01NEjlMW uPEh4cxfQg7LdyNMO9p5RAFgIlMyDeK7naLh2PZHJPKiv8Nvovbrai68h9555iGAu+ 6mNBcfnYDF8p1SJgyfNqJjOba3k8AKAPse70Psxx5vwjYx5XVtVdQ5l6j5ppSe9zq8 8x+MZWjstN3ehwaqktbqT07NythCCrcMTzbsl/BtagtPF0a7tA1CrbjUe9BAeSMs0O 4UAj+ly3OU6rAhOZ3nH6A+/LxGb7QRSq70tk9JKZRKjmbUlCuxyjwlmhjEF49fp0+M qCC/X222RBsQg== Date: Wed, 21 Feb 2024 17:00:23 -0800 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v8 08/13] netlink: specs: add ethnl PHY_GET command set Message-ID: <20240221170023.452a01ca@kernel.org> In-Reply-To: <20240220184217.3689988-9-maxime.chevallier@bootlin.com> References: <20240220184217.3689988-1-maxime.chevallier@bootlin.com> <20240220184217.3689988-9-maxime.chevallier@bootlin.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; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 20 Feb 2024 19:42:11 +0100 Maxime Chevallier wrote: > + - > + name: upstream-phy-index > + type: u32 The C define appears to be called: ETHTOOL_A_PHY_UPSTREAM_INDEX, /* u32 */ either it needs to gain the PHY_ or the spec needs to lose the phy-, otherwise C code gen gets upset: ethtool-user.c:689:10: error: =E2=80=98ETHTOOL_A_PHY_UPSTREAM_PHY_INDEX=E2= =80=99 undeclared here (not in a function); did you mean =E2=80=98ETHTOOL_A= _PHY_UPSTREAM_INDEX=E2=80=99? 689 | [ETHTOOL_A_PHY_UPSTREAM_PHY_INDEX] =3D { .name =3D "upstrea= m-phy-index", .type =3D YNL_PT_U32, }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ETHTOOL_A_PHY_UPSTREAM_INDEX Unfortunately ethtool in the in-between state where we can auto-gen user space code (or rather most of it) but the uAPI header is not auto-generated so we need to take extra care to keep things in sync :(