]> 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)
commit19ba7470246e2c345938ccc082404783edb89785
treede7ff101121b0e1b5f42b833fb5d98b7e1885545
parentb789b54b0408d35517012e67c884b4ffcaf43565
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: 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