]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: Adjust schedule look ahead window
authorKurt Kanzenbach <kurt@linutronix.de>
Wed, 25 Aug 2021 13:58:13 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:26:06 +0000 (10:26 +0100)
commit00b548b44645f22f637f0a67c7a293e38e2ff220
treed98deb58c1ac2c755165b8348eb0af614a43dd09
parent19ba7470246e2c345938ccc082404783edb89785
net: dsa: hellcreek: Adjust schedule look ahead window

Traffic schedules can only be started up to eight seconds within the
future. Therefore, the driver periodically checks every two seconds whether the
admin base time provided by the user is inside that window. If so the schedule
is started. Otherwise the check is deferred.

However, according to the programming manual the look ahead window size should
be four - not eight - seconds. By using the proposed value of four seconds
starting a schedule at a specified admin base time actually works as expected.

Fixes: eca78419b6d2 ("net: dsa: hellcreek: Add TAPRIO offloading support")
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/hirschmann/hellcreek.c