From: Nikolay Aleksandrov Date: Sat, 24 Nov 2018 02:34:22 +0000 (+0200) Subject: net: bridge: export supported boolopts X-Git-Tag: v5.0-rc1~129^2~207^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ed1ccb99e2a6bf3e2eb5f2a9f8420f17ea00e92;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/net/bridge/br.c b/net/bridge/br.c index b4a51a0535863..4e7cd993ce94b 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 */