summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_cbs.c
diff options
context:
space:
mode:
authorLeandro Dorileo <leandro.maciel.dorileo@intel.com>2019-04-08 19:12:17 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-11 04:27:43 +0200
commit7b9eba7ba0c1b24df42b70b62d154b284befbccf (patch)
tree1193629faedd25b4812aa7b3d661462ae8ccd457 /net/sched/sch_cbs.c
parentnet: strparser: fix comment (diff)
downloadlinux-7b9eba7ba0c1b24df42b70b62d154b284befbccf.tar.xz
linux-7b9eba7ba0c1b24df42b70b62d154b284befbccf.zip
net/sched: taprio: fix picos_per_byte miscalculation
The Time Aware Priority Scheduler is heavily dependent to link speed, it relies on it to calculate transmission bytes per cycle, we can't properly calculate the so called budget if the device has failed to report the link speed. In that case we can't dequeue packets assuming a wrong budget. This patch makes sure we fail to dequeue case: 1) __ethtool_get_link_ksettings() reports error or 2) the ethernet driver failed to set the ksettings' speed value (setting link speed to SPEED_UNKNOWN). Additionally we re calculate the budget whenever the link speed is changed. Fixes: 5a781ccbd19e4 ("tc: Add support for configuring the taprio scheduler") Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com> Reviewed-by: Vedang Patel <vedang.patel@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_cbs.c')
0 files changed, 0 insertions, 0 deletions