bridge: multicast: fix handling of temp and perm entries
authorSatish Ashok <sashok@cumulusnetworks.com>
Wed, 15 Jul 2015 14:16:51 +0000 (07:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2015 19:49:10 +0000 (12:49 -0700)
commite10177abf842d0c40dfecc43bd57a0a762a2fccf
tree587a87497bfc08ab6fb8377dcf92d4e3e8c37e51
parentef8299de7e2bf61ed24d1da699fa5ba13549d5f8
bridge: multicast: fix handling of temp and perm entries

When the bridge (or port) is brought down/up flush only temp entries and
leave the perm ones. Flush perm entries only when deleting the bridge
device or the associated port.

Signed-off-by: Satish Ashok <sashok@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_multicast.c
net/bridge/br_private.h