[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250916192544.36c20fc1@kernel.org>
Date: Tue, 16 Sep 2025 19:25:44 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: <netdev@...r.kernel.org>, "'Andrew Lunn'" <andrew+netdev@...n.ch>,
"'David S. Miller'" <davem@...emloft.net>, "'Eric Dumazet'"
<edumazet@...gle.com>, "'Paolo Abeni'" <pabeni@...hat.com>, "'Simon
Horman'" <horms@...nel.org>, "'Alexander Lobakin'"
<aleksander.lobakin@...el.com>, "'Mengyuan Lou'"
<mengyuanlou@...-swift.com>
Subject: Re: [PATCH net-next v4 1/2] net: libwx: support multiple RSS for
every pool
On Wed, 17 Sep 2025 09:51:44 +0800 Jiawen Wu wrote:
> On Tue, Sep 16, 2025 9:02 AM, Jakub Kicinski wrote:
> > On Fri, 12 Sep 2025 14:23:56 +0800 Jiawen Wu wrote:
> > > Subject: [PATCH net-next v4 1/2] net: libwx: support multiple RSS for every pool
> >
> > "support multiple RSS" needs an object. Multiple RSS keys? Multiple
> > contexts? Multiple tables?
>
> All of these are multiple. Each pool has a different RSS scheme.
Then configuration?
As in "support separate RSS configuration for every pool" ?
> > > -static void wx_store_reta(struct wx *wx)
> > > +u32 wx_rss_indir_tbl_entries(struct wx *wx)
> > > {
> > > + if (test_bit(WX_FLAG_SRIOV_ENABLED, wx->flags))
> > > + return 64;
> > > + else
> > > + return 128;
> > > +}
> >
> > Is WX_FLAG_SRIOV_ENABLED set only when VFs are created?
>
> Yes.
>
> > What if the user set a table with 128 entries?
> > The RSS table can't shrink once intentionally set to a specific size.
>
> Deleting VFs will reset these configurations.
You shouldn't reset user-set configuration of the PF when SR-IOV
is disabled.
Powered by blists - more mailing lists