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>
This commit is contained in:
Nikolay Aleksandrov 2018-11-24 04:34:22 +02:00 коммит произвёл David S. Miller
Родитель 70e4272b4c
Коммит 1ed1ccb99e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 */