aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-07-11 05:31:40 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-11 20:07:40 -0400
commit5efeeea1cf16b6382e1a9e2e389950024ba17f3e (patch)
treed5284913d4c773c0a69085136487e394d7901708 /drivers/net/tg3.c
parenta607072b8685c18fde9c34aee8402eb6190b8518 (diff)
tg3: Revert RSS indir tbl setup change
This patch reverts commit 2601d8a0049c8b5d29cd5adb844a305a804e505f. A spectacular set of coincidences made it look as though the table was setup incorrectly. The original version was correct. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index aa2d64f58ed3..89aa48621787 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -8237,7 +8237,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
8237 for (i = 0; i < TG3_RSS_INDIR_TBL_SIZE; i++) { 8237 for (i = 0; i < TG3_RSS_INDIR_TBL_SIZE; i++) {
8238 int idx = i % sizeof(val); 8238 int idx = i % sizeof(val);
8239 8239
8240 ent[idx] = (i % (tp->irq_cnt - 1)) + 1; 8240 ent[idx] = i % (tp->irq_cnt - 1);
8241 if (idx == sizeof(val) - 1) { 8241 if (idx == sizeof(val) - 1) {
8242 tw32(reg, val); 8242 tw32(reg, val);
8243 reg += 4; 8243 reg += 4;