Skip to content

Commit 51ed7f3

Browse files
Satish Ashokdavem330
authored andcommitted
bridge: mdb: allow the user to delete mdb entry if there's a querier
Until now when a querier was present static entries couldn't be deleted. Fix this and allow the user to manipulate the mdb with or without a querier. 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>
1 parent 7234e03 commit 51ed7f3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

net/bridge/br_mdb.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -423,19 +423,12 @@ static int __br_mdb_del(struct net_bridge *br, struct br_mdb_entry *entry)
423423

424424
memset(&ip, 0, sizeof(ip));
425425
ip.proto = entry->addr.proto;
426-
if (ip.proto == htons(ETH_P_IP)) {
427-
if (timer_pending(&br->ip4_other_query.timer))
428-
return -EBUSY;
429-
426+
if (ip.proto == htons(ETH_P_IP))
430427
ip.u.ip4 = entry->addr.u.ip4;
431428
#if IS_ENABLED(CONFIG_IPV6)
432-
} else {
433-
if (timer_pending(&br->ip6_other_query.timer))
434-
return -EBUSY;
435-
429+
else
436430
ip.u.ip6 = entry->addr.u.ip6;
437431
#endif
438-
}
439432

440433
spin_lock_bh(&br->multicast_lock);
441434
mdb = mlock_dereference(br->mdb, br);

0 commit comments

Comments
 (0)