Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp563216rdb; Tue, 23 Jan 2024 07:54:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEk0CAmTdyoz9nmnke1nXrppUL6NoNBNmN8HT5gfJNSinSSFksj7ahYMff69FIOR+lE7bhj X-Received: by 2002:a05:6402:7c8:b0:558:f2db:1ce7 with SMTP id u8-20020a05640207c800b00558f2db1ce7mr2109370edy.12.1706025287879; Tue, 23 Jan 2024 07:54:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025287; cv=pass; d=google.com; s=arc-20160816; b=WZ9P29LOI7vHLilXY9tYJ2OF/JiOes3TpLhlTV8dUOyYF8BgxH/aWfrhuaAVZ4HOYx S8GlNty814snNrmeq82ibn9MSgvNjgnRW4GP3LYCMHskbQnr5zX6EClhYgsiPU3kSdc3 dcq/4V/KDgb4Q/9QJ8HTn0RGjIiHGu+RE85aVdweRLJGSakR5DKuFgi5/LGqtOxRsuxz DDFCIj9sQM2gQ4HKCSnJQ2NLUMRUCspNGvF/haOOmts7VhtM5UinvUckxR/+AQnxExSQ HIbq/JqSaBcBPRM50vRNZeh7gxEMbluhy9IzTSHJG5O3Kh3uwXecJpndwVStj0apKVm4 RonQ== 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=0sZ1QjFk/PuVEZPwBmVZNCN9VS+oB7sF+Lu336pCRX8=; fh=ahSjQM2rFQ7YUDdyoJbt/MkbftStomhPh7sEj6ybwWk=; b=GmILcXlNw/JiB9NGf2Jo6wlXlulNL6eX/BShNXHWilcOTmoeZwMwCa03wwtnkYnBbb DsldFaGIammkutdpMcNqWhdzWnRb1XmEPvIYNffPtgIZ4+ZERX32o5gr+emxskF9byLB RyrwJd28cDp1eO6IOOIEhaTpQnYpYYGfuJVl3BK2vbA1PWqqhG6DNHRrZRi2E9d/GlPA 3XS/BwAqvEbMIbeDgsH15xfDTRiQ2nOKlWnfoMMQjp6A1upLTe7O51WQ7KBhgMcomSw5 qp1cgGB1f5OJNDWaF1ABQ9xF24FvrDWu3nmZA4biIKwFHqUrHtxhkXy0klIinqsZZwky c0EQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=faCoNNLB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a11-20020a509e8b000000b0055c4588ff40si2146921edf.476.2024.01.23.07.54.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=faCoNNLB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35598-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A19131F2021D for ; Tue, 23 Jan 2024 15:54:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 117FD60872; Tue, 23 Jan 2024 15:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="faCoNNLB" 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 3754850A61; Tue, 23 Jan 2024 15:54:01 +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=1706025242; cv=none; b=ld/RgPhxzLJSlHdEil74kvVdBPHulDlaXzGOS2/TMux5SA7lMvRB3IEUqP7w2Wq4Old9NKTIBEtXoV0UBembWAZfJtrT1i9Jw4tRQLWcvWP1KH6vSIVxpAZOi8Sob/ez7sxWdPPM9e5S9mzaJqusJLli1WBHKLmZiJLm86w4VEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025242; c=relaxed/simple; bh=MHunYJlSW0xkpBskC5UuarTnjKz+9CaefumWRC8LlQo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mOIdKttG70zaJa4EeNcsZYsRMPnO3nNui+1EMHt8q8lLsX0xgtQXuwEg+8vuVFC6fgJkZXRm+KDiNGjTgnfjzvf29Bhi3uWAOWtYU/CROQBi/0+MyMRHGuiuH1sxcinSl3JF1oV9nLSguDvmHZ7q8LEkjjbs+cjbOyRsWVz3mEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=faCoNNLB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C10C8C433C7; Tue, 23 Jan 2024 15:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706025241; bh=MHunYJlSW0xkpBskC5UuarTnjKz+9CaefumWRC8LlQo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=faCoNNLBFV5XfXtR+8ZOEu/t+q8LVdInwpjQ39aqoyj9O4YRDBWSl2269MfaUqbRm smCSJBa/YZOgRaDlR3XsV0VZUxmeDAdjeR8ZC060toABprkH0AqQlHyLIbO6KVWNJD 5+lPEBY2kemrCcz2FostODercaQr23BVNACUQZ+nEpzsoZshGIGxablCGuAQU098vM zkYcrRFVkzAl/vrgjWbFXVjPkdN8YNOIffLpEwZ+gS+3vN2VTz1gzxIDKpodu22/1K ZzO2glca/9BvqCkZwtrRbPhQY9KCoysUEAtbLyEOhDYIDxHXxONDr3QZ2wfGfYIlCz r0BI5DiKLYjFQ== Date: Tue, 23 Jan 2024 07:53:59 -0800 From: Jakub Kicinski To: Danielle Ratson Cc: "netdev@vger.kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "corbet@lwn.net" , "linux@armlinux.org.uk" , "sdf@google.com" , "kory.maincent@bootlin.com" , "maxime.chevallier@bootlin.com" , "vladimir.oltean@nxp.com" , "przemyslaw.kitszel@intel.com" , "ahmed.zaki@intel.com" , "richardcochran@gmail.com" , "shayagr@amazon.com" , "paul.greenwalt@intel.com" , "jiri@resnulli.us" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , mlxsw , Petr Machata , Ido Schimmel Subject: Re: [RFC PATCH net-next 3/9] ethtool: Add an interface for flashing transceiver modules' firmware Message-ID: <20240123075359.4c502c79@kernel.org> In-Reply-To: References: <20240122084530.32451-1-danieller@nvidia.com> <20240122084530.32451-4-danieller@nvidia.com> <20240122205046.5bb0ffe7@kernel.org> 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, 23 Jan 2024 13:34:18 +0000 Danielle Ratson wrote: > > > +The firmware update process can take several minutes to complete. > > > +Therefore, during the update process notifications are emitted from > > > +the kernel to user space updating it about the status and progress. = =20 > >=20 > > We should state more explicitly that the op just starts the process, an= d does > > not block. Looks like cable test already uses _ACT as a suffix, is it b= ased on > > some standard? Doesn't seem all that intuitive to me (or at least less = intuitive > > than calling it _START...) =20 >=20 > From Documentation/networking/ethtool-netlink.rst: > " > List of message types > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > All constants identifying message types use ``ETHTOOL_CMD_`` prefix and s= uffix > according to message purpose: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > ``_GET`` userspace request to retrieve data > ``_SET`` userspace request to set data > ``_ACT`` userspace request to perform an action > ``_GET_REPLY`` kernel reply to a ``GET`` request > ``_SET_REPLY`` kernel reply to a ``SET`` request > ``_ACT_REPLY`` kernel reply to an ``ACT`` request > ``_NTF`` kernel notification > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > " >=20 > So, it looks suitable to me. True, didn't see that. It's fine as a distinction of "doing something" vs "setting configuration" but it doesn't express the fact that the action is async. AFAIU cable test is also async, so that's fine. We'll worry about it when some tries to add _ACT which isn't async.. =F0=9F= =A4=B7=EF=B8=8F