]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: Fix incorrect setting of GCL
authorKurt Kanzenbach <kurt@linutronix.de>
Wed, 25 Aug 2021 13:58:12 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:26:05 +0000 (10:26 +0100)
commitffef5659a3d73ae8a0937ae96dff23e4877fca22
treede7ff101121b0e1b5f42b833fb5d98b7e1885545
parent86cc8498ac24dd485254d4bf965f4634530b3386
net: dsa: hellcreek: Fix incorrect setting of GCL

Currently the gate control list which is programmed into the hardware is
incorrect resulting in wrong traffic schedules. The problem is the loop
variables are incremented before they are referenced. Therefore, move the
increment to the end of the loop.

Fixes: 79489331cc7d ("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