aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorXiaolei Wang <[email protected]>2024-06-08 14:35:24 +0000
committerJakub Kicinski <[email protected]>2024-06-12 02:58:18 +0000
commitbe27b896529787e23a35ae4befb6337ce73fcca0 (patch)
tree2433b6854a071183ba17b94a7178e33247c054a8 /drivers/net/ethernet/intel/igc
parentgve: ignore nonrelevant GSO type bits when processing TSO headers (diff)
downloadkernel-be27b896529787e23a35ae4befb6337ce73fcca0.tar.gz
kernel-be27b896529787e23a35ae4befb6337ce73fcca0.zip
net: stmmac: replace priv->speed with the portTransmitRate from the tc-cbs parameters
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 <[email protected]> Reviewed-by: Wojciech Drewek <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions