Re: [PATCH net-next v2 2/2] net: wangxun: add RSS reta and rxfh fields support
From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-01 20:51:43
From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-01 20:51:43
On Fri, 29 Aug 2025 17:17:52 +0800 Jiawen Wu wrote:
+ u32 max_queues = min_t(u32, wx->num_rx_queues, + WX_RSS_INDIR_TBL_MAX); + + /*Allow at least 2 queues w/ SR-IOV.*/ + if (test_bit(WX_FLAG_SRIOV_ENABLED, wx->flags) && + max_queues < 2) + max_queues = 2; + + /* Verify user input. */ + for (i = 0; i < reta_entries; i++) + if (rxfh->indir[i] >= max_queues) + return -EINVAL;
This looks suspicious, if you report the right number of rings from GRXRINGS the core will do the check for you. -- pw-bot: cr