]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eth: fbnic: don't reset the secondary RSS indir table
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 02:52:34 +0000 (18:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:35:54 +0000 (10:35 -0800)
Secondary RSS indirection table is for additional contexts.
It can / should be initialized when such context is created.
Since we don't support creating RSS contexts, yet, this change
has no user visible effect.

Link: https://patch.msgid.link/20241220025241.1522781-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_rpc.c

index 908c098cd59e7198da5ec66c38478361493c5210..b99c890ac43f6ebc7b7b074a63f17d5a76379b8e 100644 (file)
@@ -13,10 +13,8 @@ void fbnic_reset_indir_tbl(struct fbnic_net *fbn)
        unsigned int num_rx = fbn->num_rx_queues;
        unsigned int i;
 
-       for (i = 0; i < FBNIC_RPC_RSS_TBL_SIZE; i++) {
+       for (i = 0; i < FBNIC_RPC_RSS_TBL_SIZE; i++)
                fbn->indir_tbl[0][i] = ethtool_rxfh_indir_default(i, num_rx);
-               fbn->indir_tbl[1][i] = ethtool_rxfh_indir_default(i, num_rx);
-       }
 }
 
 void fbnic_rss_key_fill(u32 *buffer)