]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: multicast: notify switchdev driver whenever MC processing gets disabled
authorOleksandr Mazur <oleksandr.mazur@plvision.eu>
Tue, 15 Feb 2022 16:53:03 +0000 (18:53 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 04:35:00 +0000 (20:35 -0800)
commit5658ca0c72c1a7690a0f991da2f14a669feb4584
tree67167ce6c88a856a25ac67bcc3690b42e3249550
parent6bdf84e076fad9a50abed700d48e7d1ab56671ed
net: bridge: multicast: notify switchdev driver whenever MC processing gets disabled

Whenever bridge driver hits the max capacity of MDBs, it disables
the MC processing (by setting corresponding bridge option), but never
notifies switchdev about such change (the notifiers are called only upon
explicit setting of this option, through the registered netlink interface).

This could lead to situation when Software MDB processing gets disabled,
but this event never gets offloaded to the underlying Hardware.

Fix this by adding a notify message in such case.

Fixes: d79114a8db04 ("switchdev: bridge: Offload multicast disabled")
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://lore.kernel.org/r/20220215165303.31908-1-oleksandr.mazur@plvision.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_multicast.c