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

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 invoke its MDB get NDO.

Note that unlike other get handlers, the allocation of the skb
containing the response is not performed in the common rtnetlink code as
the size is variable and needs to be determined by the respective
driver.

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/core/rtnetlink.c