Subject: Re: [PATCH net] net: stmmac: fix up RX flow hash indirection table when setting channels

From: Jakub Kicinski <[email-masked]>
Date: Fri, 31 Mar 2023 21:46:16 -0700

On Fri, 31 Mar 2023 11:23:47 +0200 Corinna Vinschen wrote:
>  	priv->plat->rx_queues_to_use = rx_cnt;
>  	priv->plat->tx_queues_to_use = tx_cnt;
> +	for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++)
> +		priv->rss.table[i] = ethtool_rxfh_indir_default(i, rx_cnt);

You need to check if (!netif_is_rxfh_configured())
if user set the config to not RSS to all queues we shouldn't reset.