]> 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)
commit696f369bf109fad33406d656ffa0b18737ab92ba
tree03eeb395f256a2b127980740d47c74ef6448ff95
parent6e2c6d7c44640bca6b55c962b303edbb2fb5c38d
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