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: 147c1e9b902c ("switchdev: bridge: Offload multicast disabled")
Signed-off-by: Oleksandr Mazur <redacted>
---
V2:
- target 'net' tree;
- add missed 'Fixes' tag;
- remove mc_disabled retcode check, as well as WARN_ON in case of err;
---
net/bridge/br_multicast.c | 4 ++++
1 file changed, 4 insertions(+)
From: Nikolay Aleksandrov <hidden> Date: 2022-02-15 16:57:04
On 15/02/2022 18:53, Oleksandr Mazur wrote:
quoted hunk
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: 147c1e9b902c ("switchdev: bridge: Offload multicast disabled")
Signed-off-by: Oleksandr Mazur <redacted>
---
V2:
- target 'net' tree;
- add missed 'Fixes' tag;
- remove mc_disabled retcode check, as well as WARN_ON in case of err;
---
net/bridge/br_multicast.c | 4 ++++
1 file changed, 4 insertions(+)
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski [off-list ref]:
On Tue, 15 Feb 2022 18:53:03 +0200 you wrote:
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.
[...]