mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@linux.ibm.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: Jakub Kicinski <kuba@kernel.org>,
	Tariq Toukan <tariqt@nvidia.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
	Alex Vesker <valex@nvidia.com>, Gal Pressman <gal@nvidia.com>,
	Kalesh AP <kalesh-anakkur.purayil@broadcom.com>,
	Kees Cook <kees@kernel.org>,
	linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
	Mark Bloch <mbloch@nvidia.com>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Yevgeny Kliteynik <kliteyn@nvidia.com>
Subject: Re: [PATCH net RESEND] net/mlx5: Use unique names for software steering caches
Date: Tue, 27 Oct 2026 13:42:48 +0100	[thread overview]
Message-ID: <b15a3fe4-8f32-4414-a337-a1d8db5baedd@linux.ibm.com> (raw)
In-Reply-To: <20260915111309.GJ13683@unreal>

Am 15.09.26 um 13:13 schrieb Leon Romanovsky:
> On Mon, Sep 14, 2026 at 10:58:43AM +0200, Christian Borntraeger wrote:
>> Am 06.08.26 um 13:17 schrieb Leon Romanovsky:
>>> On Tue, Aug 04, 2026 at 02:57:56PM -0700, Jakub Kicinski wrote:
>>>> On Tue, 4 Aug 2026 11:04:55 +0300 Leon Romanovsky wrote:
>>>>> On Mon, Aug 03, 2026 at 06:26:14PM -0700, Jakub Kicinski wrote:
>>>>>> On Fri, 31 Jul 2026 00:02:00 +0300 Tariq Toukan wrote:
>>>>>>> Prefix each cache name with the device name to make it unique.
>>>>>>
>>>>>> Why do we need a per-device kmem_cache?
>>>>>> Isn't the right fix to make this driver-level state?
>>>>>
>>>>> This kmem_cache is required only for software managed steering mode, which is
>>>>> configured per device by mlx5_fs_mode_set(). In general, resources
>>>>> should be allocated only when they are actually needed.
>>>>
>>>> Of course you have to wrap the init in a lock and count users.
>>>> Trivial stuff.
>>>
>>> I don't see why we should abandon the simple, architecturally
>>> correct approach of allocating and managing resources where they
>>> belong in favor of a more complex global scheme involving locking
>>> and reference counting.
>>>
>> Any updates on this?
> 
> No, we are waiting for Jakub to explain why should we complicate simple
> and working solution.
Ping.
So in the end this is something for you to sort out with Jakub.
I can just say that we see this issue in our s390 CI without the patch
so the patch as is is
Tested-by: Christian Borntraeger <borntraeger@linux.ibm.com>

I can offer to test alternative patches if any.

      reply	other threads:[~2026-10-27 12:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30 21:02 Tariq Toukan
2026-08-04  1:26 ` Jakub Kicinski
2026-08-04  8:04   ` Leon Romanovsky
2026-08-04 21:57     ` Jakub Kicinski
2026-08-06 11:17       ` Leon Romanovsky
2026-09-14  8:58         ` Christian Borntraeger
2026-09-15 11:13           ` Leon Romanovsky
2026-10-27 12:42             ` Christian Borntraeger [this message]

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=b15a3fe4-8f32-4414-a337-a1d8db5baedd@linux.ibm.com \
    --to=borntraeger@linux.ibm.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=kalesh-anakkur.purayil@broadcom.com \
    --cc=kees@kernel.org \
    --cc=kliteyn@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=saeedm@nvidia.com \
    --cc=tariqt@nvidia.com \
    --cc=valex@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®