summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-09-29 09:29:02 +0200
committerJakub Kicinski <kuba@kernel.org>2022-09-30 18:17:17 -0700
commit61e4a51621587c939672d6a9354f6d0aa3d4e131 (patch)
tree03eeb395f256a2b127980740d47c74ef6448ff95 /include/net
parentc698a5fbf7fd9f5bb909d09626319b59d55db36b (diff)
downloadlwn-61e4a51621587c939672d6a9354f6d0aa3d4e131.tar.gz
lwn-61e4a51621587c939672d6a9354f6d0aa3d4e131.zip
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dsa.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index d777eac5694f..ee369670e20e 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -294,8 +294,6 @@ struct dsa_port {
u8 lag_tx_enabled:1;
- u8 devlink_port_setup:1;
-
/* Master state bits, valid only on CPU ports */
u8 master_admin_up:1;
u8 master_oper_up:1;