]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: move sja1105_compose_gating_subschedule at the top
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 24 Jun 2020 13:54:44 +0000 (16:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:06:56 +0000 (16:06 -0700)
commitc893ce13015f9c70ad18e35976fbb5261c4a482b
tree732a08e9cf49cc37bd29e011ed2657c30c317df1
parentb5638041e111207fada4c2e6ac8de7276c7f66a4
net: dsa: sja1105: move sja1105_compose_gating_subschedule at the top

It turns out that sja1105_compose_gating_subschedule must also be called
from sja1105_vl_delete, to recalculate the overall tc-gate
configuration. Currently this is not possible without introducing a
forward declaration. So move the function at the top of the file, along
with its dependencies.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_vl.c