Re: [Bridge] [PATCH net-next 01/13] bridge: mcast: Dump MDB entries even when snooping is disabled

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Currently, the bridge driver does not dump MDB entries when multicast snooping is disabled although the entries are present in the kernel: # bridge mdb add dev br0 port swp1 grp 239.1.1.1 permanent # bridge mdb show dev br0 dev br0 port swp1 grp 239.1

Re: [Bridge] [PATCH net-next 02/13] bridge: mcast: Account for missing attributes

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: The 'MDBA_MDB' and 'MDBA_MDB_ENTRY' nest attributes are not accounted for when calculating the size of MDB notifications. Add them along with comments for existing attributes. Signed-off-by: Ido Schimmel --- net/bridge/br_mdb.c | 15 +++ 1 f

Re: [Bridge] [PATCH net-next 03/13] bridge: mcast: Factor out a helper for PG entry size calculation

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Currently, netlink notifications are sent for individual port group entries and not for the entire MDB entry itself. Subsequent patches are going to add MDB get support which will require the bridge driver to reply with an entire MDB entry. Therefore, as a

Re: [Bridge] [PATCH net-next 04/13] bridge: mcast: Rename MDB entry get function

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: The current name is going to conflict with the upcoming net device operation for the MDB get operation. Rename the function to br_mdb_entry_skb_get(). No functional changes intended. Signed-off-by: Ido Schimmel --- net/bridge/br_device.c| 2 +- ne

Re: [Bridge] [PATCH net-next 05/13] vxlan: mdb: Adjust function arguments

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Adjust the function's arguments and rename it to allow it to be reused by future call sites that only have access to 'struct vxlan_mdb_entry_key', but not to 'struct vxlan_mdb_config'. No functional changes intended. Signed-off-by: Ido Schimmel --- driv

Re: [Bridge] [PATCH net-next 06/13] vxlan: mdb: Factor out a helper for remote entry size calculation

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Currently, netlink notifications are sent for individual remote entries and not for the entire MDB entry itself. Subsequent patches are going to add MDB get support which will require the VXLAN driver to reply with an entire MDB entry. Therefore, as a prep

Re: [Bridge] [PATCH net-next 07/13] bridge: add MDB get uAPI attributes

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Add MDB get attributes that correspond to the MDB set attributes used in RTM_NEWMDB messages. Specifically, add 'MDBA_GET_ENTRY' which will hold a 'struct br_mdb_entry' and 'MDBA_GET_ENTRY_ATTRS' which will hold 'MDBE_ATTR_*' attributes that are used as inde

Re: [Bridge] [PATCH net-next 08/13] net: Add MDB get device operation

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Add MDB net device operation that will be invoked by rtnetlink code in response to received RTM_GETMDB messages. Subsequent patches will implement the operation in the bridge and VXLAN drivers. Signed-off-by: Ido Schimmel --- include/linux/netdevice.h |

Re: [Bridge] [PATCH net-next 09/13] bridge: mcast: Add MDB get support

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Implement support for MDB get operation by looking up a matching MDB entry, allocating the skb according to the entry's size and then filling in the response. The operation is performed under the bridge multicast lock to ensure that the entry does not change

Re: [Bridge] [PATCH net-next 10/13] vxlan: mdb: Add MDB get support

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Implement support for MDB get operation by looking up a matching MDB entry, allocating the skb according to the entry's size and then filling in the response. Signed-off-by: Ido Schimmel --- drivers/net/vxlan/vxlan_core.c| 1 + drivers/net/vxlan/v

Re: [Bridge] [PATCH net-next 11/13] rtnetlink: Add MDB get support

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Now that both the bridge and VXLAN drivers implement the MDB get net device operation, expose the functionality to user space by registering a handler for RTM_GETMDB messages. Derive the net device from the ifindex specified in the ancillary header and invok

Re: [Bridge] [PATCH net-next 12/13] selftests: bridge_mdb: Use MDB get instead of dump

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Test the new MDB get functionality by converting dump and grep to MDB get. Signed-off-by: Ido Schimmel --- .../selftests/net/forwarding/bridge_mdb.sh| 184 +++--- 1 file changed, 71 insertions(+), 113 deletions(-) Acked-by: Nikolay Al

Re: [Bridge] [PATCH net-next 13/13] selftests: vxlan_mdb: Use MDB get instead of dump

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:12, Ido Schimmel wrote: Test the new MDB get functionality by converting dump and grep to MDB get. Signed-off-by: Ido Schimmel --- tools/testing/selftests/net/test_vxlan_mdb.sh | 108 +- 1 file changed, 54 insertions(+), 54 deletions(-) Acked-by: Nikolay Ale

Re: [Bridge] [PATCH net-next v5 3/5] net: bridge: Add netlink knobs for number / max learned FDB entries

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:27, Johannes Nixdorf wrote: The previous patch added accounting and a limit for the number of dynamically learned FDB entries per bridge. However it did not provide means to actually configure those bounds or read back the count. This patch does that. Two new netlink attributes ar

Re: [Bridge] [PATCH net-next v5 4/5] net: bridge: Set strict_start_type for br_policy

2023-10-17 Thread Nikolay Aleksandrov
On 10/16/23 16:27, Johannes Nixdorf wrote: Set any new attributes added to br_policy to be parsed strictly, to prevent userspace from passing garbage. Signed-off-by: Johannes Nixdorf --- net/bridge/br_netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bridge/br_netlink.c b/n

Re: [Bridge] [PATCH net-next 07/13] bridge: add MDB get uAPI attributes

2023-10-17 Thread Ido Schimmel via Bridge
On Tue, Oct 17, 2023 at 12:08:30PM +0300, Nikolay Aleksandrov wrote: > On 10/16/23 16:12, Ido Schimmel wrote: > > Add MDB get attributes that correspond to the MDB set attributes used in > > RTM_NEWMDB messages. Specifically, add 'MDBA_GET_ENTRY' which will hold > > a 'struct br_mdb_entry' and 'MDB

Re: [Bridge] [PATCH net-next 09/13] bridge: mcast: Add MDB get support

2023-10-17 Thread Ido Schimmel via Bridge
On Tue, Oct 17, 2023 at 12:24:44PM +0300, Nikolay Aleksandrov wrote: > On 10/16/23 16:12, Ido Schimmel wrote: > > Implement support for MDB get operation by looking up a matching MDB > > entry, allocating the skb according to the entry's size and then filling > > in the response. The operation is p

Re: [Bridge] [PATCH net-next v5 3/5] net: bridge: Add netlink knobs for number / max learned FDB entries

2023-10-17 Thread Ido Schimmel
On Mon, Oct 16, 2023 at 03:27:22PM +0200, Johannes Nixdorf wrote: > The previous patch added accounting and a limit for the number of > dynamically learned FDB entries per bridge. However it did not provide > means to actually configure those bounds or read back the count. This > patch does that. >

Re: [Bridge] [PATCH net-next v5 4/5] net: bridge: Set strict_start_type for br_policy

2023-10-17 Thread Ido Schimmel
On Mon, Oct 16, 2023 at 03:27:23PM +0200, Johannes Nixdorf wrote: > Set any new attributes added to br_policy to be parsed strictly, to > prevent userspace from passing garbage. > > Signed-off-by: Johannes Nixdorf Reviewed-by: Ido Schimmel

Re: [Bridge] [PATCH net-next 09/13] bridge: mcast: Add MDB get support

2023-10-17 Thread Nikolay Aleksandrov
On 10/17/23 14:03, Ido Schimmel wrote: On Tue, Oct 17, 2023 at 12:24:44PM +0300, Nikolay Aleksandrov wrote: On 10/16/23 16:12, Ido Schimmel wrote: Implement support for MDB get operation by looking up a matching MDB entry, allocating the skb according to the entry's size and then filling in the

Re: [Bridge] [PATCH net-next v5 0/5] bridge: Add a limit on learned FDB entries

2023-10-17 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 16 Oct 2023 15:27:19 +0200 you wrote: > Introduce a limit on the amount of learned FDB entries on a bridge, > configured by netlink with a build time default on bridge creation in > the kernel config. > > Fo