linux-stable/drivers
Corinna Vinschen 6fe8c74fc9 net: stmmac: fix up RX flow hash indirection table when setting channels
[ Upstream commit 218c597325 ]

stmmac_reinit_queues() fails to fix up the RX hash.  Even if the number
of channels gets restricted, the output of `ethtool -x' indicates that
all RX queues are used:

  $ ethtool -l enp0s29f2
  Channel parameters for enp0s29f2:
  Pre-set maximums:
  RX:		8
  TX:		8
  Other:		n/a
  Combined:	n/a
  Current hardware settings:
  RX:		8
  TX:		8
  Other:		n/a
  Combined:	n/a
  $ ethtool -x enp0s29f2
  RX flow hash indirection table for enp0s29f2 with 8 RX ring(s):
      0:      0     1     2     3     4     5     6     7
      8:      0     1     2     3     4     5     6     7
  [...]
  $ ethtool -L enp0s29f2 rx 3
  $ ethtool -x enp0s29f2
  RX flow hash indirection table for enp0s29f2 with 3 RX ring(s):
      0:      0     1     2     3     4     5     6     7
      8:      0     1     2     3     4     5     6     7
  [...]

Fix this by setting the indirection table according to the number
of specified queues.  The result is now as expected:

  $ ethtool -L enp0s29f2 rx 3
  $ ethtool -x enp0s29f2
  RX flow hash indirection table for enp0s29f2 with 3 RX ring(s):
      0:      0     1     2     0     1     2     0     1
      8:      2     0     1     2     0     1     2     0
  [...]

Tested on Intel Elkhart Lake.

Fixes: 0366f7e06a ("net: stmmac: add ethtool support for get/set channels")
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Link: https://lore.kernel.org/r/20230403121120.489138-1-vinschen@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-13 17:02:40 +02:00
..
accel accel: fix CONFIG_DRM dependencies 2023-03-10 09:28:36 +01:00
accessibility tty: fix possible null-ptr-defer in spk_ttyio_release 2023-01-19 16:24:04 +01:00
acpi ACPI: bus: Rework system-level device notification handling 2023-04-06 12:12:36 +02:00
amba ARM updates for 6.2 2022-12-13 15:22:14 -08:00
android
ata ata: ahci: Revert "ata: ahci: Add Tiger Lake UP{3,4} AHCI controller" 2023-03-10 09:27:41 +01:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-03-30 12:51:20 +02:00
auxdisplay auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() 2023-03-11 13:50:20 +01:00
base drivers: base: dd: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:45 +01:00
bcma
block loop: LOOP_CONFIGURE: send uevents for partitions 2023-04-06 12:12:37 +02:00
bluetooth Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work 2023-03-30 12:51:23 +02:00
bus bus: imx-weim: fix branch condition evaluates to a garbage value 2023-03-30 12:51:42 +02:00
cdrom
char cpumask: fix incorrect cpumask scanning result checks 2023-03-30 12:51:28 +02:00
clk clk: HI655X: select REGMAP instead of depending on it 2023-03-22 13:37:41 +01:00
clocksource clocksource/drivers/riscv: Patch riscv_clock_next_event() jump before first use 2023-03-10 09:28:19 +01:00
comedi comedi: adv_pci1760: Fix PWM instruction handling 2023-01-19 17:24:47 +01:00
connector
counter
cpufreq cpufreq: apple-soc: Fix an IS_ERR() vs NULL check 2023-03-11 13:50:37 +01:00
cpuidle cpuidle: psci: Iterate backwards over list in psci_pd_remove() 2023-03-22 13:38:08 +01:00
crypto crypto: qat - fix out-of-bounds read 2023-03-10 09:29:41 +01:00
cxl cxl/pmem: Fix nvdimm registration races 2023-03-10 09:29:42 +01:00
dax dax/kmem: Fix leak of memory-hotplug resources 2023-03-10 09:29:48 +01:00
dca
devfreq
dio
dma dmaengine: ptdma: check for null desc before calling pt_cmd_callback 2023-03-10 09:28:57 +01:00
dma-buf dma-buf: actually set signaling bit for private stub fences 2023-01-27 14:16:18 +01:00
edac EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info 2023-01-20 19:47:34 +01:00
eisa
extcon Char/Misc driver changes for 6.2-rc1 2022-12-16 03:49:24 -08:00
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-01-17 18:09:21 +01:00
firmware firmware: arm_scmi: Fix device node validation for mailbox transport 2023-03-30 12:51:41 +02:00
fpga fpga: microchip-spi: rewrite status polling in a time measurable way 2023-03-10 09:28:53 +01:00
fsi
gnss
gpio gpio: davinci: Add irq chip flag to skip set wake 2023-04-13 17:02:40 +02:00
gpu drm/i915/huc: Cancel HuC delayed load timer on reset. 2023-04-13 17:02:38 +02:00
greybus
hid HID: intel-ish-hid: ipc: Fix potential use-after-free in work function 2023-03-30 12:51:28 +02:00
hsi
hte
hv Drivers: vmbus: Check for channel allocation before looking up relids 2023-04-13 17:02:35 +02:00
hwmon hwmon (it87): Fix voltage scaling for chips with 10.9mV ADCs 2023-03-30 12:51:24 +02:00
hwspinlock
hwtracing hwtracing: hisi_ptt: Only add the supported devices to the filters list 2023-03-10 09:28:49 +01:00
i2c i2c: xgene-slimpro: Fix out-of-bounds bug in xgene_slimpro_i2c_xfer() 2023-03-30 12:51:42 +02:00
i3c i3c: export SETDASA method 2022-12-11 21:25:58 +01:00
idle Revert "cpuidle, intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE *again*" 2023-04-06 12:12:48 +02:00
iio iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_config_word() 2023-03-11 13:50:41 +01:00
infiniband RDMA/cma: Distinguish between sockaddr_in and sockaddr_in6 by size 2023-03-11 13:50:46 +01:00
input Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table 2023-04-06 12:12:41 +02:00
interconnect interconnect: qcom: qcm2290: Fix MASTER_SNOC_BIMC_NRT 2023-03-30 12:50:48 +02:00
iommu iommu/vt-d: Allow zero SAGAW if second-stage not supported 2023-04-06 12:12:40 +02:00
ipack
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-10 09:28:23 +01:00
isdn treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
leds leds: simatic-ipc-leds-gpio: Make sure we have the GPIO providing driver 2023-03-10 09:28:43 +01:00
macintosh macintosh: windfarm: Use unsigned type for 1-bit bitfields 2023-03-17 08:58:02 +01:00
mailbox - qcom: enable sc8280xp, sm8550 and sm4250 support 2022-12-21 09:31:18 -08:00
mcb
md dm: fix improper splitting for abnormal bios 2023-04-13 17:02:34 +02:00
media Revert "venus: firmware: Correct non-pix start and end addresses" 2023-04-06 12:12:40 +02:00
memory memory: tegra30-emc: fix interconnect registration race 2023-03-22 13:37:58 +01:00
memstick memstick/mspro_block: Convert to use sysfs_emit()/sysfs_emit_at() APIs 2022-12-09 10:29:58 +01:00
message
mfd mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak 2023-03-11 13:50:38 +01:00
misc misc: vmw_balloon: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:45 +01:00
mmc mmc: sdhci_am654: lower power-on failed message severity 2023-03-22 13:38:07 +01:00
most
mtd mtd: rawnand: meson: invalidate cache on polling ECC bit 2023-04-06 12:12:33 +02:00
mux
net net: stmmac: fix up RX flow hash indirection table when setting channels 2023-04-13 17:02:40 +02:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-03-22 13:37:49 +01:00
ntb
nubus
nvdimm cxl/pmem: Fix nvdimm registration races 2023-03-10 09:29:42 +01:00
nvme nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM620 2023-04-06 12:12:29 +02:00
nvmem nvmem: qcom-spmi-sdam: fix module autoloading 2023-01-28 14:39:31 +01:00
of 12 hotfixes, mostly against mm/. Five of these fixes are cc:stable. 2023-02-13 14:09:20 -08:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-10 09:28:17 +01:00
parisc parisc: pdc_stable: use strscpy() to instead of strncpy() 2023-01-09 09:51:56 +01:00
parport
pci PCI: dwc: Fix PORT_LINK_CONTROL update when CDM check enabled 2023-04-06 12:12:32 +02:00
pcmcia treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
peci
perf arm_pmu: fix event CPU filtering 2023-02-16 21:23:52 +00:00
phy phy: rockchip-typec: Fix unsigned comparison with less than zero 2023-03-11 13:50:46 +01:00
pinctrl pinctrl: at91-pio4: fix domain name assignment 2023-04-06 12:12:43 +02:00
platform platform/x86: think-lmi: Clean up display of current_value on Thinkstation 2023-04-13 17:02:39 +02:00
pnp
power power: supply: da9150: Fix use after free bug in da9150_charger_remove due to race condition 2023-03-30 12:50:50 +02:00
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-10 09:28:10 +01:00
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-06 12:12:33 +02:00
pwm pwm: meson: Explicitly set .polarity in .get_state() 2023-04-13 17:02:36 +02:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2022-12-11 19:30:20 -08:00
ras
regulator regulator: Handle deferred clk 2023-04-06 12:12:35 +02:00
remoteproc remoteproc/mtk_scp: Move clk ops outside send_lock 2023-03-10 09:29:49 +01:00
reset reset: uniphier-glue: Fix possible null-ptr-deref 2023-01-03 11:30:46 +01:00
rpmsg rpmsg: glink: Release driver_override 2023-03-10 09:29:04 +01:00
rtc rtc: allow rtc_read_alarm without read_alarm callback 2023-03-11 13:50:35 +01:00
s390 s390/vfio-ap: fix memory leak in vfio_ap device driver 2023-04-06 12:12:36 +02:00
sbus
scsi scsi: mpt3sas: Don't print sense pool info twice 2023-04-06 12:12:33 +02:00
sh
siox
slimbus
soc soc: qcom: llcc: Fix slice configuration values for SC8280XP 2023-03-30 12:51:41 +02:00
soundwire soundwire: cadence: Drain the RX FIFO after an IO timeout 2023-03-11 13:50:46 +01:00
spi spi: tegra210-quad: Fix iterator outside loop 2023-03-11 13:50:34 +01:00
spmi
ssb
staging staging: rtl8723bs: Pass correct parameters to cfg80211_get_bss() 2023-03-17 08:57:47 +01:00
target scsi: target: iscsi: Fix an error message in iscsi_check_key() 2023-03-30 12:51:28 +02:00
tc
tee tee: amdtee: fix race condition in amdtee_open_session 2023-03-30 12:51:41 +02:00
thermal thermal: intel: int340x: processor_thermal: Fix additional deadlock 2023-04-06 12:12:43 +02:00
thunderbolt thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:12:22 +02:00
tty hvc/xen: prevent concurrent accesses to the shared ring 2023-03-30 12:51:21 +02:00
ufs scsi: ufs: core: Add soft dependency on governor_simpleondemand 2023-03-30 12:51:29 +02:00
uio
usb usb: ucsi: Fix ucsi->connector race 2023-04-06 12:12:47 +02:00
vdpa vp_vdpa: fix the crash in hot unplug with vp_vdpa 2023-03-22 13:38:06 +01:00
vfio vfio/type1: restore locked_vm 2023-03-10 09:29:56 +01:00
vhost vhost-vdpa: free iommu domain after last use during cleanup 2023-03-22 13:37:46 +01:00
video fbdev: au1200fb: Fix potential divide by zero 2023-04-06 12:12:30 +02:00
virt virt/coco/sev-guest: Add throttling awareness 2023-03-22 13:38:10 +01:00
virtio virtio: Implementing attribute show with sysfs_emit 2022-12-28 05:28:11 -05:00
vlynq
w1 w1: fix WARNING after calling w1_process() 2023-01-19 17:26:33 +01:00
watchdog watchdog: sbsa_wdog: Make sure the timeout programming is within the limits 2023-03-11 13:50:29 +01:00
xen xen/grant-dma-iommu: Implement a dummy probe_device() callback 2023-03-10 09:28:18 +01:00
zorro
Kconfig
Makefile