summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>2018-11-24 04:34:22 +0200
committerDavid S. Miller <davem@davemloft.net>2018-11-27 15:04:15 -0800
commit1ed1ccb99e2a6bf3e2eb5f2a9f8420f17ea00e92 (patch)
tree018d96dc3001c0f8bcb44c56cc98c3529c82ba46
parent70e4272b4c81828e7d942209bae83b9d92752cfe (diff)
downloadlwn-1ed1ccb99e2a6bf3e2eb5f2a9f8420f17ea00e92.tar.gz
lwn-1ed1ccb99e2a6bf3e2eb5f2a9f8420f17ea00e92.zip
net: bridge: export supported boolopts
Now that we have at least one bool option, we can export all of the supported bool options via optmask when dumping them. v2: new patch Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/bridge/br.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br.c b/net/bridge/br.c
index b4a51a053586..4e7cd993ce94 100644
--- a/net/bridge/br.c
+++ b/net/bridge/br.c
@@ -247,7 +247,7 @@ void br_boolopt_multi_get(const struct net_bridge *br,
optval |= (br_boolopt_get(br, opt_id) << opt_id);
bm->optval = optval;
- bm->optmask = 0;
+ bm->optmask = GENMASK((BR_BOOLOPT_MAX - 1), 0);
}
/* private bridge options, controlled by the kernel */