summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVivien Didelot2017-11-06 22:11:46 +0100
committerDavid S. Miller2017-11-09 01:26:49 +0100
commitec15dd4269d0cbf947c9a2dfdcf08a917098fab1 (patch)
tree01ca12642fb8db32a27dfb858ff4d62c746c53c4 /include/net/dsa.h
parentnet: dsa: setup and teardown master device (diff)
downloadkernel-qcow2-linux-ec15dd4269d0cbf947c9a2dfdcf08a917098fab1.tar.gz
kernel-qcow2-linux-ec15dd4269d0cbf947c9a2dfdcf08a917098fab1.tar.xz
kernel-qcow2-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/dsa.h')
-rw-r--r--include/net/dsa.h2
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