net: bridge: export supported boolopts
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 24 Nov 2018 02:34:22 +0000 (04:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:04:15 +0000 (15:04 -0800)
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>
net/bridge/br.c

index b4a51a053586358250ef7c84b6e7b2cb8061d43c..4e7cd993ce94bc3ded5b0f690b5166c065ebb5cd 100644 (file)
@@ -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 */