OSDN Git Service

bridge: mdb: fix double add notification
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 13 Jul 2015 13:36:19 +0000 (06:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jul 2015 00:15:01 +0000 (17:15 -0700)
commit5ebc784625ea68a9570d1f70557e7932988cd1b4
tree0f2529bbdd644a415d32f95b2058ead34dc54ac0
parentbc8c20acaea154efc558f5f4122ed65d396f6156
bridge: mdb: fix double add notification

Since the mdb add/del code was introduced there have been 2 br_mdb_notify
calls when doing br_mdb_add() resulting in 2 notifications on each add.

Example:
 Command: bridge mdb add dev br0 port eth1 grp 239.0.0.1 permanent
 Before patch:
 root@debian:~# bridge monitor all
 [MDB]dev br0 port eth1 grp 239.0.0.1 permanent
 [MDB]dev br0 port eth1 grp 239.0.0.1 permanent

 After patch:
 root@debian:~# bridge monitor all
 [MDB]dev br0 port eth1 grp 239.0.0.1 permanent

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: cfd567543590 ("bridge: add support of adding and deleting mdb entries")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c