]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: mdb: use mdb and port entries in notifications
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 7 Sep 2020 09:56:12 +0000 (12:56 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 20:16:35 +0000 (13:16 -0700)
commit81f1983852fd1f956c0a1d465cfc6116e99e2adc
tree894647cc2539ed806ed5ca6831dde4702140a5ea
parent79abc87505d84ade6c624b5bb707766a8a6791a6
net: bridge: mdb: use mdb and port entries in notifications

We have to use mdb and port entries when sending mdb notifications in
order to fill in all group attributes properly. Before this change we
would've used a fake br_mdb_entry struct to fill in only partial
information about the mdb. Now we can also reuse the mdb dump fill
function and thus have only a single central place which fills the mdb
attributes.

v3: add IPv6 support

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_mdb.c
net/bridge/br_multicast.c
net/bridge/br_private.h