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:
1 parent
7116ffb48a
commit
58ac2f8eb0
2 files changed
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user