Skip to content

Commit 1ed1ccb

Browse files
Nikolay Aleksandrovdavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 70e4272 commit 1ed1ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bridge/br.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void br_boolopt_multi_get(const struct net_bridge *br,
247247
optval |= (br_boolopt_get(br, opt_id) << opt_id);
248248

249249
bm->optval = optval;
250-
bm->optmask = 0;
250+
bm->optmask = GENMASK((BR_BOOLOPT_MAX - 1), 0);
251251
}
252252

253253
/* private bridge options, controlled by the kernel */

0 commit comments

Comments
 (0)