diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 33dfb7fda8cc..cb6967947c30 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -10780,12 +10780,12 @@ static int tg3_run_loopback(struct tg3 *tp, int loopback_mode) | |||
10780 | struct tg3_napi *tnapi, *rnapi; | 10780 | struct tg3_napi *tnapi, *rnapi; |
10781 | struct tg3_rx_prodring_set *tpr = &tp->prodring[0]; | 10781 | struct tg3_rx_prodring_set *tpr = &tp->prodring[0]; |
10782 | 10782 | ||
10783 | tnapi = &tp->napi[0]; | ||
10784 | rnapi = &tp->napi[0]; | ||
10783 | if (tp->irq_cnt > 1) { | 10785 | if (tp->irq_cnt > 1) { |
10784 | tnapi = &tp->napi[1]; | ||
10785 | rnapi = &tp->napi[1]; | 10786 | rnapi = &tp->napi[1]; |
10786 | } else { | 10787 | if (tp->tg3_flags3 & TG3_FLG3_ENABLE_TSS) |
10787 | tnapi = &tp->napi[0]; | 10788 | tnapi = &tp->napi[1]; |
10788 | rnapi = &tp->napi[0]; | ||
10789 | } | 10789 | } |
10790 | coal_now = tnapi->coal_now | rnapi->coal_now; | 10790 | coal_now = tnapi->coal_now | rnapi->coal_now; |
10791 | 10791 | ||