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

2023-01-30 Thread Petr Machata via Bridge
Nikolay Aleksandrov writes: > On 26/01/2023 19:01, Petr Machata wrote: >> diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c >> index de531109b947..04261dd2380b 100644 >> --- a/net/bridge/br_multicast.c >> +++ b/net/bridge/br_multicast.c >> @@ -766,6 +766,102 @@ static void br_m

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

2023-01-29 Thread Ido Schimmel via Bridge
Thanks for the review, Nik! On Sun, Jan 29, 2023 at 12:07:31PM +0200, Nikolay Aleksandrov wrote: > On 26/01/2023 19:01, Petr Machata wrote: > > +static int > > +br_multicast_pmctx_ngroups_set_max(struct net_bridge_mcast_port *pmctx, > > + u32 max, struct netlink_ext_ac

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

2023-01-29 Thread Nikolay Aleksandrov
On 26/01/2023 19:01, Petr Machata wrote: > The previous patch added accounting for number of MDB entries per port and > per port-VLAN, and the logic to verify that these values stay within > configured bounds. However it didn't provide means to actually configure > those bounds or read the occupanc

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

2023-01-26 Thread Petr Machata via Bridge
The previous patch added accounting for number of MDB entries per port and per port-VLAN, and the logic to verify that these values stay within configured bounds. However it didn't provide means to actually configure those bounds or read the occupancy. This patch does that. Two new netlink attribu