net: bridge: vlan: account for router port lists when notifying
authorNikolay Aleksandrov <nikolay@nvidia.com>
Mon, 16 Aug 2021 14:57:05 +0000 (17:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2021 09:37:29 +0000 (10:37 +0100)
commit05d6f38ec0a5108596941f8b25d92c45aa08fc40
tree329481a47e73da443394b9aee3c19d431f3f95e1
parentb92dace38f8f8ee9895fa211b79ad1b5ba3a2020
net: bridge: vlan: account for router port lists when notifying

When sending a global vlan notification we should account for the number
of router ports when allocating the skb, otherwise we might end up
losing notifications.

Fixes: dc002875c22b ("net: bridge: vlan: use br_rports_fill_info() to export mcast router ports")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c
net/bridge/br_private.h
net/bridge/br_vlan_options.c