mirror-linux/drivers
Song, Yoong Siang 24877687b3 net: stmmac: fix CBS idleslope and sendslope calculation
When link speed is not 100 Mbps, port transmit rate and speed divider
are set to 8 and 1000000 respectively. These values are incorrect for
CBS idleslope and sendslope HW values calculation if the link speed is
not 1 Gbps.

This patch adds switch statement to set the values of port transmit rate
and speed divider for 10 Gbps, 5 Gbps, 2.5 Gbps, 1 Gbps, and 100 Mbps.
Note that CBS is not supported at 10 Mbps.

Fixes: bc41a6689b ("net: stmmac: tc: Remove the speed dependency")
Fixes: 1f705bc61a ("net: stmmac: Add support for CBS QDISC")
Signed-off-by: Song, Yoong Siang <yoong.siang.song@intel.com>
Link: https://lore.kernel.org/r/1613655653-11755-1-git-send-email-yoong.siang.song@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-02-22 19:06:01 -08:00
..
accessibility
acpi ACPI updates for 5.12-rc1 2021-02-20 21:50:59 -08:00
amba
android
ata ata: Avoid comma separated statements 2021-01-31 08:05:46 -07:00
atm atm: idt77252: fix build broken on amd64 2021-02-15 12:36:27 -08:00
auxdisplay
base Power management updates for 5.12-rc1 2021-02-20 21:42:18 -08:00
bcma
block for-5.12/drivers-2021-02-17 2021-02-21 11:06:54 -08:00
bluetooth TTY/Serial driver changes for 5.12-rc1 2021-02-20 21:28:04 -08:00
bus ARM: SoC drivers for v5.12 2021-02-20 18:42:28 -08:00
cdrom
char
clk Power management updates for 5.12-rc1 2021-02-20 21:42:18 -08:00
clocksource - Drop dead code on efm32 (Uwe Kleine-König) 2021-02-10 11:02:20 +01:00
connector
counter
cpufreq Merge branch 'pm-opp' into pm 2021-02-15 17:01:46 +01:00
cpuidle
crypto
dax
dca
devfreq Merge branches 'pm-devfreq' and 'pm-tools' 2021-02-15 17:02:04 +01:00
dio
dma dmaengine dw: Revert "dmaengine: dw: Enable runtime PM" 2021-02-08 17:36:12 +05:30
dma-buf
edac Merge branch 'edac-misc' into edac-updates-for-v5.12 2021-02-15 10:06:58 +01:00
eisa
extcon
firewire
firmware EFI updates for v5.12 2021-02-20 19:09:26 -08:00
fpga
fsi
gnss
gpio gpio: ep93xx: Fix single irqchip with multi gpiochips 2021-02-10 14:47:27 +01:00
gpu ACPI updates for 5.12-rc1 2021-02-20 21:50:59 -08:00
greybus
hid Staging/IIO driver patches for 5.12-rc1 2021-02-20 21:36:51 -08:00
hsi
hv
hwmon ACPI: Test for ACPI_SUCCESS rather than !ACPI_FAILURE 2021-01-27 18:43:07 +01:00
hwspinlock
hwtracing
i2c SoC platform removal 2021-02-20 18:16:30 -08:00
i3c
ide
idle
iio
infiniband
input TTY/Serial driver changes for 5.12-rc1 2021-02-20 21:28:04 -08:00
interconnect
iommu iommu/vt-d: Do not use flush-queue when caching-mode is on 2021-01-28 13:59:02 +01:00
ipack
irqchip irqchip updates for Linux 5.12: 2021-02-15 15:41:56 +01:00
isdn
leds TTY/Serial driver changes for 5.12-rc1 2021-02-20 21:28:04 -08:00
lightnvm lightnvm: pblk: Replace guid_copy() with export_guid()/import_guid() 2021-02-14 21:27:24 -07:00
macintosh
mailbox
mcb
md for-5.12/drivers-2021-02-17 2021-02-21 11:06:54 -08:00
media media: rockchip: rkisp1: extend uapi array sizes 2021-01-28 11:31:43 +01:00
memory Memory controller drivers for v5.12, part two 2021-02-11 13:48:49 +01:00
memstick
message
mfd
misc
mmc for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
most
mtd SoC platform removal 2021-02-20 18:16:30 -08:00
mux
net net: stmmac: fix CBS idleslope and sendslope calculation 2021-02-22 19:06:01 -08:00
nfc nfc: st-nci: Remove unnecessary variable 2021-02-08 14:56:20 -08:00
ntb
nubus
nvdimm for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
nvme for-5.12/drivers-2021-02-17 2021-02-21 11:06:54 -08:00
nvmem
of of/device: Update dma_range_map only when dev has valid dma-ranges 2021-01-27 14:00:14 -06:00
opp OPP: Add function to look up required OPP's for a given OPP 2021-02-04 16:30:14 +05:30
parisc
parport
pci Revert "PCI/ASPM: Save/restore L1SS Capability for suspend/resume" 2021-01-27 10:12:43 -06:00
pcmcia
perf
phy
pinctrl
platform ACPI updates for 5.12-rc1 2021-02-20 21:50:59 -08:00
pnp
power
powercap powercap: intel_rapl: Use topology interface in rapl_init_domains() 2021-02-12 16:53:01 +01:00
pps
ps3
ptp ptp: ptp_clockmatrix: clean-up - parenthesis around a == b are unnecessary 2021-02-17 13:49:26 -08:00
pwm
rapidio
ras
regulator
remoteproc
reset ARM: SoC drivers for v5.12 2021-02-20 18:42:28 -08:00
rpmsg
rtc rtc: mc146818: Dont test for bit 0-5 in Register D 2021-02-02 20:35:02 +01:00
s390 These are the v5.12 updates for the locking subsystem: 2021-02-21 12:12:01 -08:00
sbus
scsi for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
sfi
sh
siox
slimbus
soc ARM: SoC drivers for v5.12 2021-02-20 18:42:28 -08:00
soundwire
spi ACPI updates for 5.12-rc1 2021-02-20 21:50:59 -08:00
spmi
ssb
staging Staging/IIO driver patches for 5.12-rc1 2021-02-20 21:36:51 -08:00
target for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
tc
tee Simplify i2c acess in OP-TEE driver 2021-02-09 16:10:49 +01:00
thermal Scheduler updates for v5.12: 2021-02-21 12:35:04 -08:00
thunderbolt thunderbolt: Changes for v5.12 merge window 2021-02-09 13:00:07 +01:00
tty TTY/Serial driver changes for 5.12-rc1 2021-02-20 21:28:04 -08:00
uio
usb usb: misc: usb3503: Fix logic in usb3503_init() 2021-02-11 13:52:04 +01:00
vdpa vdpa/mlx5: Restore the hardware used index after change map 2021-02-05 10:28:04 -05:00
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2021-02-20 17:45:32 -08:00
zorro
Kconfig
Makefile