]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: remove bool devlink_port_setup
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 29 Sep 2022 07:29:02 +0000 (09:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Oct 2022 01:17:17 +0000 (18:17 -0700)
commita8625931918e1b2e9af447a71ed2d3ad45209dfd
tree03eeb395f256a2b127980740d47c74ef6448ff95
parent2a77e46f2d996fe5c40c3165f8ee25606ba49144
net: dsa: remove bool devlink_port_setup

Since dsa_port_devlink_setup() and dsa_port_devlink_teardown() are
already called from code paths which only execute once per port (due to
the existing bool dp->setup), keeping another dp->devlink_port_setup is
redundant, because we can already manage to balance the calls properly
(and not call teardown when setup was never called, or call setup twice,
or things like that).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dsa.h
net/dsa/dsa2.c