net: bridge: add per-port multicast flood flag
[cascardo/linux.git] / net / bridge / br_forward.c
index 5de854e..7cb41ae 100644 (file)
@@ -186,6 +186,9 @@ void br_flood(struct net_bridge *br, struct sk_buff *skb,
                /* Do not flood unicast traffic to ports that turn it off */
                if (pkt_type == BR_PKT_UNICAST && !(p->flags & BR_FLOOD))
                        continue;
+               if (pkt_type == BR_PKT_MULTICAST &&
+                   !(p->flags & BR_MCAST_FLOOD))
+                       continue;
 
                /* Do not flood to ports that enable proxy ARP */
                if (p->flags & BR_PROXYARP)