Re: [PATCH net RESEND] net/mlx5: Use unique names for software steering caches

Leon Romanovsky <[email protected]>
Newsgroups org.kernel.vger.linux-rdma,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <20260804080455.GB326170@unreal>
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.

I personally run everything in FW-managed steering mode, so this
kmem_cache is useless to me.

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.