OSDN Git Service

net: bridge: mcast: add delete due to fast-leave mdb flag
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 30 Jul 2019 12:20:41 +0000 (15:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 23:13:40 +0000 (19:13 -0400)
commit3247b272048ffefc12c7dcfa3169bd03047a49bc
tree0e0d9639b882dbc452c6bc337adc201d54fa6eaf
parent0eba31ef5c8913adfd103c45c32d4856f1aa85cc
net: bridge: mcast: add delete due to fast-leave mdb flag

In user-space there's no way to distinguish why an mdb entry was deleted
and that is a problem for daemons which would like to keep the mdb in
sync with remote ends (e.g. mlag) but would also like to converge faster.
In almost all cases we'd like to age-out the remote entry for performance
and convergence reasons except when fast-leave is enabled. In that case we
want explicit immediate remote delete, thus add mdb flag which is set only
when the entry is being deleted due to fast-leave.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_bridge.h
net/bridge/br_mdb.c
net/bridge/br_multicast.c
net/bridge/br_private.h