Thread (26 messages) 26 messages, 4 authors, 2023-02-02

Re: [PATCH net-next mlxsw v2 08/16] net: bridge: Add netlink knobs for number / maximum MDB entries

From: Petr Machata <petrm@nvidia.com>
Date: 2023-02-02 15:04:17
Also in: bridge

Nikolay Aleksandrov [off-list ref] writes:
On 02/02/2023 10:52, Nikolay Aleksandrov wrote:
quoted
On 01/02/2023 19:28, Petr Machata wrote:
quoted
+int br_multicast_vlan_ngroups_set_max(struct net_bridge *br,
+				      struct net_bridge_vlan *v, u32 max,
+				      struct netlink_ext_ack *extack)
+{
+	if (br_multicast_port_ctx_vlan_disabled(&v->port_mcast_ctx)) {
+		NL_SET_ERR_MSG_MOD(extack, "Multicast snooping disabled on this VLAN");
+		return -EINVAL;
+	}
same comment about the check
Ok, not exactly the same. I see that for the max case this check is used, please pull it
in the vlan code and just drop this helper. Both read/write will be doing the same then.
OK. This actually simplifies the code quite a bit.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help