]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5aa2948f18b113ba7998ccdd3756d7fa46dd3996
tree0e0d9639b882dbc452c6bc337adc201d54fa6eaf
parent3c3bbe5e1f15d8764262893f7efcff84747d9141
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