[PATCH net v2 0/2] net: bridge: mcast: fix mdb_n_entries counting warning

Nikolay Aleksandrov
2026-02-13T07:01:28Z

Hi,
The first patch fixes a warning in the mdb_n_entries code which was
reported by syzbot, the second patch adds tests for different ways
which used to trigger said warning. For more information please check
the individual commit messages.

v2: fix 2 typos in the selftest, no changes to the fix

Cheers,
Nik

Nikolay Aleksandrov (2):
net: bridge: mcast: always update mdb_n_entries for vlan contexts
selftests: forwarding: bridge_mdb_max: add tests for mdb_n_entries
warning

net/bridge/br_multicast.c | 45 ++++------
.../net/forwarding/bridge_mdb_max.sh | 90 ++++++++++++++++++-
2 files changed, 106 insertions(+), 29 deletions(-)

--
2.47.3