From: Matt Carlson Date: Sun, 11 Jul 2010 09:31:40 +0000 (+0000) Subject: tg3: Revert RSS indir tbl setup change X-Git-Tag: v2.6.36-rc1~571^2~280 X-Git-Url: https://bbs.cooldavid.org/git/?p=net-next-2.6.git;a=commitdiff_plain;h=5efeeea1cf16b6382e1a9e2e389950024ba17f3e 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 Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index aa2d64f58ed..89aa4862178 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) for (i = 0; i < TG3_RSS_INDIR_TBL_SIZE; i++) { int idx = i % sizeof(val); - ent[idx] = (i % (tp->irq_cnt - 1)) + 1; + ent[idx] = i % (tp->irq_cnt - 1); if (idx == sizeof(val) - 1) { tw32(reg, val); reg += 4;