diff options
author | Jijie Shao <shaojijie@huawei.com> | 2025-04-10 05:13:24 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-12 06:17:36 +0300 |
commit | 4e4ac53335de54bcb9d26842df0998cfd8fcaf90 (patch) | |
tree | a2fab5d28e6ff03956823aef74f59c4bc3658b55 /lib/mpi/mpi-inline.c | |
parent | 4ad3df755a96012f792c7fa2aa62317db3cba82b (diff) | |
download | linux-4e4ac53335de54bcb9d26842df0998cfd8fcaf90.tar.xz |
net: hibmcge: fix wrong mtu log issue
A dbg log is generated when the driver modifies the MTU,
which is expected to trace the change of the MTU.
However, the log is recorded after WRITE_ONCE().
At this time, netdev->mtu has been changed to the new value.
As a result, netdev->mtu is the same as new_mtu.
This patch modifies the log location and records logs before WRITE_ONCE().
Fixes: ff4edac6e9bd ("net: hibmcge: Implement some .ndo functions")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250410021327.590362-5-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions