]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: mvpp2: fix the RSS table entry offset
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Fri, 8 Dec 2017 09:24:20 +0000 (10:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 19:35:15 +0000 (14:35 -0500)
The macro used to access or set an RSS table entry was using an offset
of 8, while it should use an offset of 0. This lead to wrongly configure
the RSS table, not accessing the right entries.

Fixes: 1d7d15d79fb4 ("net: mvpp2: initialize the RSS tables")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index fed2b2f909fcf06b98441863ac92ff63a2fd01f7..634b2f41cc9e43ef66d2cf2c33e393221b92af23 100644 (file)
@@ -85,7 +85,7 @@
 
 /* RSS Registers */
 #define MVPP22_RSS_INDEX                       0x1500
-#define     MVPP22_RSS_INDEX_TABLE_ENTRY(idx)  ((idx) << 8)
+#define     MVPP22_RSS_INDEX_TABLE_ENTRY(idx)  (idx)
 #define     MVPP22_RSS_INDEX_TABLE(idx)                ((idx) << 8)
 #define     MVPP22_RSS_INDEX_QUEUE(idx)                ((idx) << 16)
 #define MVPP22_RSS_TABLE_ENTRY                 0x1508