netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Cc: Edward Cree <ecree.xilinx@gmail.com>,
	"Nelson, Shannon" <shannon.nelson@amd.com>,
	"Jagielski, Jedrzej" <jedrzej.jagielski@intel.com>,
	"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"Dumazet, Eric" <edumazet@google.com>,
	"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"jiri@resnulli.us" <jiri@resnulli.us>,
	"horms@kernel.org" <horms@kernel.org>,
	"corbet@lwn.net" <corbet@lwn.net>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	Kalesh AP <kalesh-anakkur.purayil@broadcom.com>,
	"R, Bharath" <bharath.r@intel.com>
Subject: Re: [PATCH net-next 01/15] devlink: add value check to devlink_info_version_put()
Date: Mon, 14 Apr 2025 09:33:56 -0700	[thread overview]
Message-ID: <20250414093356.52868a1d@kernel.org> (raw)
In-Reply-To: <69a0bf15-5f52-4974-bbaf-d4ba04e1f983@intel.com>

On Mon, 14 Apr 2025 14:28:31 +0200 Przemek Kitszel wrote:
> On 4/11/25 13:11, Edward Cree wrote:
> > On 09/04/2025 18:25, Nelson, Shannon wrote:  
> >> On 4/9/2025 7:39 AM, Jakub Kicinski wrote:  
> > AFAICT the argument on the other side is "it makes the driver look bad",
> >   which has (expletive)-all to do with engineering.
> > Value often comes from firmware, anyway, in which case driver's (& core's)
> >   job is to be a dumb pipe, not go around 'validating' things.  
> 
> that way we will stick with the ugly, repetitive, overly bloated code,
> repetitive and hard to fix in all places, (and repetitive) drivers
> 
> yeah, good that we bikeshed on something so simple :)
> If anyone is "strongly opposed", please say so once more, and we will
> drop this patch. Otherwise we are going to keep it.

Unrelated (I think?) this is a relatively big series so I don't want 
to race with it, but I think we should rename the defines. 

DEVLINK_INFO_VERSION_GENERIC_x -> DEVLINK_VER_x ?

You did some major devlink refactors, maybe you want to take this on? :)
The 40 char defines lead to pretty ugly wrapping, and make constructs
like:

	if (something)
		devlink_info_version_running_put(...

impossible. We could also rename the helpers to s/_version// ..

  reply	other threads:[~2025-04-14 16:33 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 21:51 [PATCH net-next 00/15][pull request] ixgbe: Add basic devlink support Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 01/15] devlink: add value check to devlink_info_version_put() Tony Nguyen
2025-04-08  0:31   ` Nelson, Shannon
2025-04-08 11:00     ` Jagielski, Jedrzej
2025-04-08 16:24       ` Nelson, Shannon
2025-04-09 14:14         ` Jagielski, Jedrzej
2025-04-09 14:39           ` Jakub Kicinski
2025-04-09 17:25             ` Nelson, Shannon
2025-04-11 11:11               ` Edward Cree
2025-04-14 12:28                 ` Przemek Kitszel
2025-04-14 16:33                   ` Jakub Kicinski [this message]
2025-04-15  7:53                     ` Przemek Kitszel
2025-04-07 21:51 ` [PATCH net-next 02/15] ixgbe: wrap netdev_priv() usage Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 03/15] ixgbe: add initial devlink support Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 04/15] ixgbe: add handler for devlink .info_get() Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 05/15] ixgbe: add E610 functions for acquiring flash data Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 06/15] ixgbe: read the OROM version information Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 07/15] ixgbe: read the netlist " Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 08/15] ixgbe: add .info_get extension specific for E610 devices Tony Nguyen
2025-04-09  2:28   ` Jakub Kicinski
2025-04-07 21:51 ` [PATCH net-next 09/15] ixgbe: add E610 functions getting PBA and FW ver info Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 10/15] ixgbe: extend .info_get with() stored versions Tony Nguyen
2025-04-09  2:31   ` Jakub Kicinski
2025-04-09 10:50     ` Jagielski, Jedrzej
2025-04-09 14:38       ` Jakub Kicinski
2025-04-10 12:49         ` Jagielski, Jedrzej
2025-04-07 21:51 ` [PATCH net-next 11/15] ixgbe: add device flash update via devlink Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 12/15] ixgbe: add support for devlink reload Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 13/15] ixgbe: add FW API version check Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 14/15] ixgbe: add E610 implementation of FW recovery mode Tony Nguyen
2025-04-07 21:51 ` [PATCH net-next 15/15] ixgbe: add support for FW rollback mode Tony Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250414093356.52868a1d@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=bharath.r@intel.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=ecree.xilinx@gmail.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jedrzej.jagielski@intel.com \
    --cc=jiri@resnulli.us \
    --cc=kalesh-anakkur.purayil@broadcom.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=shannon.nelson@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).