diff options
author | Yu Xiao <yu.xiao@corigine.com> | 2022-08-02 12:33:55 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-04 05:20:54 +0300 |
commit | 4ae97cae07e15d41e5c0ebabba64c6eefdeb0bbe (patch) | |
tree | f9a8782e6578ebf286fe258739ffd7d4d7a5783c /net/mptcp | |
parent | 744d23c71af39c7dc77ac7c3cac87ae86a181a85 (diff) | |
download | linux-4ae97cae07e15d41e5c0ebabba64c6eefdeb0bbe.tar.xz |
nfp: ethtool: fix the display error of `ethtool -m DEVNAME`
The port flag isn't set to `NFP_PORT_CHANGED` when using
`ethtool -m DEVNAME` before, so the port state (e.g. interface)
cannot be updated. Therefore, it caused that `ethtool -m DEVNAME`
sometimes cannot read the correct information.
E.g. `ethtool -m DEVNAME` cannot work when load driver before plug
in optical module, as the port interface is still NONE without port
update.
Now update the port state before sending info to NIC to ensure that
port interface is correct (latest state).
Fixes: 61f7c6f44870 ("nfp: implement ethtool get module EEPROM")
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220802093355.69065-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp')
0 files changed, 0 insertions, 0 deletions