All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Moshe Shemesh <moshe@nvidia.com>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	Tariq Toukan <tariqt@nvidia.com>, <netdev@vger.kernel.org>,
	Saeed Mahameed <saeedm@nvidia.com>, Gal Pressman <gal@nvidia.com>,
	Leon Romanovsky <leonro@nvidia.com>,
	Mark Bloch <mbloch@nvidia.com>,
	Yevgeny Kliteynik <kliteyn@nvidia.com>,
	"David S. Miller" <davem@davemloft.net>,
	Paolo Abeni <pabeni@redhat.com>,
	Eric Dumazet <edumazet@google.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>
Subject: Re: [PATCH net-next V3 04/11] net/mlx5: fs, add mlx5_fs_pool API
Date: Thu, 19 Dec 2024 07:12:02 -0800	[thread overview]
Message-ID: <20241219071202.777dab06@kernel.org> (raw)
In-Reply-To: <d8788869-51d6-45c8-9009-e72453cc381c@nvidia.com>

On Thu, 19 Dec 2024 14:30:41 +0200 Moshe Shemesh wrote:
> > Locally (say two lines above) your label name is obvious.
> > But please imagine it in the context of whole function, it is much
> > better to name labels after what they jump to (instead of what they
> > jump from). It is not only easier to reason about, but also more
> > future proof. I think Simon would agree.
> > I'm fine with keeping existing code as-is, but for new code, it's
> > always better to write it up to the best practices known.
>
> I tend to name labels according to what they jump from. Though if I see 
> on same function labels are used the other way I try to be consistent 
> with current code.
> I think there are pros and cons for both ways and both ways are used.
> I can change here, but is that kernel or netdev consensus ?

Yes, there's a consensus now. But I think since all mlx* code uses
the "jump source" naming mixing the two could lead to confusion for
your internal developers, and bugs. So I'd say up to you :(
-- 
Since Przemek found a real bug elsewhere:
pw-bot: cr

  reply	other threads:[~2024-12-19 15:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18 15:09 [PATCH net-next V3 00/11] mlx5 misc changes 2024-12-18 Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 01/11] net/mlx5: LAG, Refactor lag logic Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 02/11] net/mlx5: LAG, Support LAG over Multi-Host NICs Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 03/11] net/mlx5: fs, add counter object to flow destination Tariq Toukan
2024-12-19  9:00   ` Przemek Kitszel
2024-12-19 12:06     ` Moshe Shemesh
2024-12-18 15:09 ` [PATCH net-next V3 04/11] net/mlx5: fs, add mlx5_fs_pool API Tariq Toukan
2024-12-19  9:17   ` Przemek Kitszel
2024-12-19 12:30     ` Moshe Shemesh
2024-12-19 15:12       ` Jakub Kicinski [this message]
2024-12-19 15:36       ` Przemek Kitszel
2024-12-18 15:09 ` [PATCH net-next V3 05/11] net/mlx5: fs, retry insertion to hash table on EBUSY Tariq Toukan
2024-12-19 10:03   ` Przemek Kitszel
2024-12-18 15:09 ` [PATCH net-next V3 06/11] net/mlx5: HWS, no need to expose mlx5hws_send_queues_open/close Tariq Toukan
2024-12-19 10:11   ` Przemek Kitszel
2024-12-18 15:09 ` [PATCH net-next V3 07/11] net/mlx5: HWS, do not initialize native API queues Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 08/11] net/mlx5: DR, expand SWS STE callbacks and consolidate common structs Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 09/11] net/mlx5: DR, add support for ConnectX-8 steering Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 10/11] net/mlx5: Remove PTM support log message Tariq Toukan
2024-12-18 15:09 ` [PATCH net-next V3 11/11] net/mlx5: fs, Add support for RDMA RX steering over IB link layer Tariq Toukan

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=20241219071202.777dab06@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=kliteyn@nvidia.com \
    --cc=leonro@nvidia.com \
    --cc=mbloch@nvidia.com \
    --cc=moshe@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=saeedm@nvidia.com \
    --cc=tariqt@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.