From: Ido Schimmel Date: Wed, 25 Oct 2023 12:30:15 +0000 (+0300) Subject: net: Add MDB get device operation X-Git-Tag: v6.7-rc1~160^2~17^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62f47bf9e2c00eea457cad8fa43c24ed0282b37a;p=thirdparty%2Fkernel%2Flinux.git net: Add MDB get device operation 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 Acked-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b8bf669212cce..a16c9cc063fe0 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1609,6 +1609,10 @@ struct net_device_ops { int (*ndo_mdb_dump)(struct net_device *dev, struct sk_buff *skb, struct netlink_callback *cb); + int (*ndo_mdb_get)(struct net_device *dev, + struct nlattr *tb[], u32 portid, + u32 seq, + struct netlink_ext_ack *extack); int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh, u16 flags,