kernel_samsung_a53x/drivers/net/ethernet/stmicro/stmmac
Xiaolei Wang e1b86c6491 net: stmmac: replace priv->speed with the portTransmitRate from the tc-cbs parameters
[ Upstream commit be27b896529787e23a35ae4befb6337ce73fcca0 ]

The current cbs parameter depends on speed after uplinking,
which is not needed and will report a configuration error
if the port is not initially connected. The UAPI exposed by
tc-cbs requires userspace to recalculate the send slope anyway,
because the formula depends on port_transmit_rate (see man tc-cbs),
which is not an invariant from tc's perspective. Therefore, we
use offload->sendslope and offload->idleslope to derive the
original port_transmit_rate from the CBS formula.

Fixes: 1f705bc61aee ("net: stmmac: Add support for CBS QDISC")
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20240608143524.2065736-1-xiaolei.wang@windriver.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:03 +01:00
..
altr_tse_pcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
altr_tse_pcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chain_mode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.h net: stmmac: xgmac: fix handling of DPP safety error for DMA channels 2024-11-18 12:13:24 +01:00
descs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
descs_com.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-anarion.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-dwc-qos-eth.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-generic.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-imx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-intel-plat.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-intel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-ipq806x.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-lpc18xx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-mediatek.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-meson.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-meson8b.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-oxnas.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-qcom-ethqos.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-rk.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-socfpga.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sti.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-stm32.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sun8i.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sunxi.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_core.c net: stmmac: fix rx queue priority assignment 2024-11-19 09:22:46 +01:00
dwmac4_descs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_descs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac5.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxgmac2.h net: stmmac: xgmac: fix a typo of register name in DPP safety handling 2024-11-18 12:13:27 +01:00
dwxgmac2_core.c net: stmmac: fix rx queue priority assignment 2024-11-19 09:22:46 +01:00
dwxgmac2_descs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxgmac2_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxlgmac2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enh_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwif.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc_core.c net: stmmac: xgmac: Disable FPE MMC interrupts 2024-11-18 12:11:11 +01:00
norm_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ring_mode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_hwtstamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_main.c net: stmmac: use dev_err_probe() for reporting mdio bus registration failure 2024-11-18 12:11:49 +01:00
stmmac_mdio.c net: stmmac: Handle disabled MDIO busses from devicetree 2024-11-18 12:11:49 +01:00
stmmac_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_pcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_platform.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_platform.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_selftests.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_tc.c net: stmmac: replace priv->speed with the portTransmitRate from the tc-cbs parameters 2024-11-19 14:19:03 +01:00