未验证 提交 28500f1c 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!1843 net: bridge: multicast: notify switchdev driver whenever MC processing gets disabled

Merge Pull Request from: @ci-robot 
 
PR sync from: Zhengchao Shao <shaozhengchao@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/BRJBIYKRMZVLU22DE46JGRSJRG6C7E66/ 
 
https://gitee.com/openeuler/kernel/issues/I7V613 
 
Link:https://gitee.com/openeuler/kernel/pulls/1843 

Reviewed-by: Yue Haibing <yuehaibing@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
......@@ -48,6 +48,8 @@ static const struct rhashtable_params br_sg_port_rht_params = {
.automatic_shrinking = true,
};
static void br_mc_disabled_update(struct net_device *dev, bool value);
static void br_multicast_start_querier(struct net_bridge *br,
struct bridge_mcast_own_query *query);
static void br_multicast_add_router(struct net_bridge *br,
......@@ -1040,6 +1042,7 @@ struct net_bridge_mdb_entry *br_multicast_new_group(struct net_bridge *br,
return mp;
if (atomic_read(&br->mdb_hash_tbl.nelems) >= br->hash_max) {
br_mc_disabled_update(br->dev, false);
br_opt_toggle(br, BROPT_MULTICAST_ENABLED, false);
return ERR_PTR(-E2BIG);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册