]> 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)
commit71dc34ce31aa7bf57390cba5e19da99bb5647ae7
tree732a08e9cf49cc37bd29e011ed2657c30c317df1
parent0ce6248427dbe27820098bdd219e9d5f3470dff1
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