RE: [PATCH net-next v4 1/2] net: libwx: support multiple RSS for every pool
From: Jiawen Wu <jiawenwu@trustnetic.com>
Date: 2025-09-17 07:40:12
On Wed, Sep 17, 2025 10:26 AM, Jakub Kicinski wrote:
On Wed, 17 Sep 2025 09:51:44 +0800 Jiawen Wu wrote:quoted
On Tue, Sep 16, 2025 9:02 AM, Jakub Kicinski wrote:quoted
On Fri, 12 Sep 2025 14:23:56 +0800 Jiawen Wu wrote:quoted
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" ?quoted
quoted
quoted
-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.quoted
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.
But the maximum queue number of PF is different when SRIOV is enabled or disabled? And for the global RSS table (non SR-IOV mode) or multiple RSS table (SR-IOV mode), the table size is different on hardware design. How could I keep the RSS redirection table during the mode switching?