Skip to content

Commit 8a7b741

Browse files
atenartdavem330
authored andcommitted
net: mvpp2: fix the RSS table entry offset
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: 1d7d15d ("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>
1 parent b7e445a commit 8a7b741

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/mvpp2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
/* RSS Registers */
8787
#define MVPP22_RSS_INDEX 0x1500
88-
#define MVPP22_RSS_INDEX_TABLE_ENTRY(idx) ((idx) << 8)
88+
#define MVPP22_RSS_INDEX_TABLE_ENTRY(idx) (idx)
8989
#define MVPP22_RSS_INDEX_TABLE(idx) ((idx) << 8)
9090
#define MVPP22_RSS_INDEX_QUEUE(idx) ((idx) << 16)
9191
#define MVPP22_RSS_TABLE_ENTRY 0x1508

0 commit comments

Comments
 (0)