WSL2-Linux-Kernel/drivers
Yu Xiao 4ae97cae07 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: 61f7c6f448 ("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>
2022-08-03 19:20:54 -07:00
..
accessibility
acpi EFI updates for v5.20 2022-08-03 14:38:02 -07:00
amba
android
ata ATA changes for 5.20-rc1 2022-08-03 15:26:04 -07:00
atm
auxdisplay
base Power management updates for 5.20-rc1 2022-08-02 11:17:00 -07:00
bcma
block for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
bluetooth
bus
cdrom
char This update includes the following changes: 2022-08-02 17:45:14 -07:00
clk linux-kselftest-kunit-5.20-rc1 2022-08-02 19:34:45 -07:00
clocksource
comedi
connector
counter
cpufreq
cpuidle RCU pull request for v5.20 (or whatever) 2022-08-02 19:12:45 -07:00
crypto This update includes the following changes: 2022-08-02 17:45:14 -07:00
cxl
dax
dca
devfreq
dio
dma
dma-buf Saner handling of "lseek should fail with ESPIPE" - gets rid of 2022-08-03 11:35:20 -07:00
edac
eisa
extcon
firewire
firmware EFI efivars sysfs interface removal 2022-08-03 14:41:36 -07:00
fpga
fsi
gnss
gpio
gpu Saner handling of "lseek should fail with ESPIPE" - gets rid of 2022-08-03 11:35:20 -07:00
greybus
hid
hsi
hte
hv
hwmon hwmon updates for v5.20 2022-08-02 11:07:04 -07:00
hwspinlock
hwtracing
i2c
i3c
idle Power management updates for 5.20-rc1 2022-08-02 11:17:00 -07:00
iio
infiniband Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
input EFI updates for v5.20 2022-08-03 14:38:02 -07:00
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md hardening updates for v5.20-rc1 2022-08-02 14:38:59 -07:00
media
memory
memstick
message
mfd ACPI updates for 5.20-rc1 2022-08-02 11:12:25 -07:00
misc Folio changes for 6.0 2022-08-03 10:35:43 -07:00
mmc linux-kselftest-kunit-5.20-rc1 2022-08-02 19:34:45 -07:00
most
mtd for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
mux
net nfp: ethtool: fix the display error of `ethtool -m DEVNAME` 2022-08-03 19:20:54 -07:00
nfc
ntb
nubus
nvdimm for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
nvme iov_iter work, part 1 - isolated cleanups and optimizations. 2022-08-03 13:50:22 -07:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pnp
power
powercap Power management updates for 5.20-rc1 2022-08-02 11:17:00 -07:00
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
sbus
scsi for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
sh
siox
slimbus
soc
soundwire
spi spi: Updates for v5.20 2022-08-02 10:55:04 -07:00
spmi
ssb
staging Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
target for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
tc
tee
thermal Thermal control updates for 5.20-rc1 2022-08-02 11:27:53 -07:00
thunderbolt linux-kselftest-kunit-5.20-rc1 2022-08-02 19:34:45 -07:00
tty
ufs for-5.20/block-2022-07-29 2022-08-02 13:46:35 -07:00
uio
usb
vdpa
vfio Saner handling of "lseek should fail with ESPIPE" - gets rid of 2022-08-03 11:35:20 -07:00
vhost
video
virt linux-kselftest-kunit-5.20-rc1 2022-08-02 19:34:45 -07:00
virtio Folio changes for 6.0 2022-08-03 10:35:43 -07:00
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile