]> git.itanic.dy.fi Git - linux-stable/commit
bridge: mcast: Add MDB get support
authorIdo Schimmel <idosch@nvidia.com>
Wed, 25 Oct 2023 12:30:16 +0000 (15:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2023 09:51:42 +0000 (10:51 +0100)
commit68b380a395a72ace8b77463f6cd2d7fd6dcb5a1b
tree7516b1ac9be351159097b3ff1cddf5d550990efe
parent62f47bf9e2c00eea457cad8fa43c24ed0282b37a
bridge: mcast: Add MDB get support

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 between the time the reply
size is determined and when the reply is filled in.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_mdb.c
net/bridge/br_private.h