Skip to content

Commit 1a36e0f

Browse files
idoschdavem330
authored andcommitted
net: Add MDB bulk deletion device operation
Add MDB net device operation that will be invoked by rtnetlink code in response to received 'RTM_DELMDB' messages with the 'NLM_F_BULK' flag set. Subsequent patches will implement the operation in the bridge and VXLAN drivers. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e0cd06f commit 1a36e0f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/linux/netdevice.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,9 @@ struct netdev_net_notifier {
13291329
* int (*ndo_mdb_del)(struct net_device *dev, struct nlattr *tb[],
13301330
* struct netlink_ext_ack *extack);
13311331
* Deletes the MDB entry from dev.
1332+
* int (*ndo_mdb_del_bulk)(struct net_device *dev, struct nlattr *tb[],
1333+
* struct netlink_ext_ack *extack);
1334+
* Bulk deletes MDB entries from dev.
13321335
* int (*ndo_mdb_dump)(struct net_device *dev, struct sk_buff *skb,
13331336
* struct netlink_callback *cb);
13341337
* Dumps MDB entries from dev. The first argument (marker) in the netlink
@@ -1611,6 +1614,9 @@ struct net_device_ops {
16111614
int (*ndo_mdb_del)(struct net_device *dev,
16121615
struct nlattr *tb[],
16131616
struct netlink_ext_ack *extack);
1617+
int (*ndo_mdb_del_bulk)(struct net_device *dev,
1618+
struct nlattr *tb[],
1619+
struct netlink_ext_ack *extack);
16141620
int (*ndo_mdb_dump)(struct net_device *dev,
16151621
struct sk_buff *skb,
16161622
struct netlink_callback *cb);

0 commit comments

Comments
 (0)