net: wangxun: avoid statistics updates during device teardown

After introducing WX_STATE_DOWN, wx_update_stats() now explicitly skips
statistics collection while the device is in teardown or reset state.
Calling wx_update_stats() from the device disable path therefore becomes
redundant.

Remove wx_update_stats() calls from ngbe_disable_device() and
txgbe_disable_device().

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20260525100543.27140-3-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Jiawen Wu 2026-05-25 18:05:42 +08:00 committed by Paolo Abeni
parent 7116ffb48a
commit 58ac2f8eb0
2 changed files with 0 additions and 4 deletions

View File

@ -404,8 +404,6 @@ static void ngbe_disable_device(struct wx *wx)
wr32(wx, WX_PX_TR_CFG(reg_idx), WX_PX_TR_CFG_SWFLSH);
}
wx_update_stats(wx);
}
static void ngbe_reset(struct wx *wx)

View File

@ -265,8 +265,6 @@ static void txgbe_disable_device(struct wx *wx)
/* Disable the Tx DMA engine */
wr32m(wx, WX_TDM_CTL, WX_TDM_CTL_TE, 0);
wx_update_stats(wx);
}
void txgbe_down(struct wx *wx)