Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Add MDB net device operations

Add MDB net device operations that will be invoked by rtnetlink code in
response to received RTM_{NEW,DEL,GET}MDB messages. Subsequent patches
will implement these operations in the bridge and VXLAN drivers.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ido Schimmel and committed by
David S. Miller
8c44fa12 ec47dcb4

+21
+21
include/linux/netdevice.h
··· 1307 1307 * Used to add FDB entries to dump requests. Implementers should add 1308 1308 * entries to skb and update idx with the number of entries. 1309 1309 * 1310 + * int (*ndo_mdb_add)(struct net_device *dev, struct nlattr *tb[], 1311 + * u16 nlmsg_flags, struct netlink_ext_ack *extack); 1312 + * Adds an MDB entry to dev. 1313 + * int (*ndo_mdb_del)(struct net_device *dev, struct nlattr *tb[], 1314 + * struct netlink_ext_ack *extack); 1315 + * Deletes the MDB entry from dev. 1316 + * int (*ndo_mdb_dump)(struct net_device *dev, struct sk_buff *skb, 1317 + * struct netlink_callback *cb); 1318 + * Dumps MDB entries from dev. The first argument (marker) in the netlink 1319 + * callback is used by core rtnetlink code. 1320 + * 1310 1321 * int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh, 1311 1322 * u16 flags, struct netlink_ext_ack *extack) 1312 1323 * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq, ··· 1580 1569 const unsigned char *addr, 1581 1570 u16 vid, u32 portid, u32 seq, 1582 1571 struct netlink_ext_ack *extack); 1572 + int (*ndo_mdb_add)(struct net_device *dev, 1573 + struct nlattr *tb[], 1574 + u16 nlmsg_flags, 1575 + struct netlink_ext_ack *extack); 1576 + int (*ndo_mdb_del)(struct net_device *dev, 1577 + struct nlattr *tb[], 1578 + struct netlink_ext_ack *extack); 1579 + int (*ndo_mdb_dump)(struct net_device *dev, 1580 + struct sk_buff *skb, 1581 + struct netlink_callback *cb); 1583 1582 int (*ndo_bridge_setlink)(struct net_device *dev, 1584 1583 struct nlmsghdr *nlh, 1585 1584 u16 flags,