diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-11-06 22:11:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-09 01:26:49 +0100 |
commit | ec15dd4269d0cbf947c9a2dfdcf08a917098fab1 (patch) | |
tree | 01ca12642fb8db32a27dfb858ff4d62c746c53c4 /include/net | |
parent | net: dsa: setup and teardown master device (diff) | |
download | linux-ec15dd4269d0cbf947c9a2dfdcf08a917098fab1.tar.xz linux-ec15dd4269d0cbf947c9a2dfdcf08a917098fab1.zip |
net: dsa: setup and teardown tree
This commit provides better scope for the DSA tree setup and teardown
functions. It renames the "applied" bool to "setup" and print a message
when the tree is setup, as it is done during teardown.
At the same time, check dst->setup in dsa_tree_setup, where it is set to
true.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 2a8613b5a23d..6c239257309b 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -122,7 +122,7 @@ struct dsa_switch_tree { struct kref refcount; /* Has this tree been applied to the hardware? */ - bool applied; + bool setup; /* * Configuration data for the platform device that owns |