aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index c32655ca3c46..2c36e70e37e5 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -6157,8 +6157,12 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
6157#endif 6157#endif
6158 6158
6159 /* Receive/send statistics. */ 6159 /* Receive/send statistics. */
6160 if ((rdmac_mode & RDMAC_MODE_FIFO_SIZE_128) && 6160 if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) {
6161 (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) { 6161 val = tr32(RCVLPC_STATS_ENABLE);
6162 val &= ~RCVLPC_STATSENAB_DACK_FIX;
6163 tw32(RCVLPC_STATS_ENABLE, val);
6164 } else if ((rdmac_mode & RDMAC_MODE_FIFO_SIZE_128) &&
6165 (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) {
6162 val = tr32(RCVLPC_STATS_ENABLE); 6166 val = tr32(RCVLPC_STATS_ENABLE);
6163 val &= ~RCVLPC_STATSENAB_LNGBRST_RFIX; 6167 val &= ~RCVLPC_STATSENAB_LNGBRST_RFIX;
6164 tw32(RCVLPC_STATS_ENABLE, val); 6168 tw32(RCVLPC_STATS_ENABLE, val);