net: bridge: convert and rename mcast disabled
Convert mcast disabled to an option bit and while doing so convert the logic to check if multicast is enabled instead. That is make the logic follow the option value - if it's set then mcast is enabled and vice versa. This avoids a few confusing places where we inverted the value that's being set to follow the mcast_disabled logic. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
be3664a038
commit
13cefad2f2
@@ -1422,7 +1422,8 @@ static int br_fill_info(struct sk_buff *skb, const struct net_device *brdev)
|
||||
#endif
|
||||
#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
|
||||
if (nla_put_u8(skb, IFLA_BR_MCAST_ROUTER, br->multicast_router) ||
|
||||
nla_put_u8(skb, IFLA_BR_MCAST_SNOOPING, !br->multicast_disabled) ||
|
||||
nla_put_u8(skb, IFLA_BR_MCAST_SNOOPING,
|
||||
br_opt_get(br, BROPT_MULTICAST_ENABLED)) ||
|
||||
nla_put_u8(skb, IFLA_BR_MCAST_QUERY_USE_IFADDR,
|
||||
br->multicast_query_use_ifaddr) ||
|
||||
nla_put_u8(skb, IFLA_BR_MCAST_QUERIER, br->multicast_querier) ||
|
||||
|
||||
Reference in New Issue
Block a user