]> git.itanic.dy.fi Git - linux-stable/commitdiff
rtnetlink: bridge: Enable MDB bulk deletion
authorIdo Schimmel <idosch@nvidia.com>
Sun, 17 Dec 2023 08:32:42 +0000 (10:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:27:21 +0000 (11:27 +0000)
Now that both the common code as well as individual drivers support MDB
bulk deletion, allow user space to make such requests.

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

index ec185e131766cf55d2010a25c179bdebe2f8d3c9..5f6ed6da3cfc0b6e7a660760a9efe242b5478f12 100644 (file)
@@ -6741,5 +6741,6 @@ void __init rtnetlink_init(void)
 
        rtnl_register(PF_BRIDGE, RTM_GETMDB, rtnl_mdb_get, rtnl_mdb_dump, 0);
        rtnl_register(PF_BRIDGE, RTM_NEWMDB, rtnl_mdb_add, NULL, 0);
-       rtnl_register(PF_BRIDGE, RTM_DELMDB, rtnl_mdb_del, NULL, 0);
+       rtnl_register(PF_BRIDGE, RTM_DELMDB, rtnl_mdb_del, NULL,
+                     RTNL_FLAG_BULK_DEL_SUPPORTED);
 }