]> git.itanic.dy.fi Git - linux-stable/commitdiff
bridge: add MDB state mask uAPI attribute
authorIdo Schimmel <idosch@nvidia.com>
Sun, 17 Dec 2023 08:32:36 +0000 (10:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2023 11:27:20 +0000 (11:27 +0000)
Currently, the 'state' field in 'struct br_port_msg' can be set to 1 if
the MDB entry is permanent or 0 if it is temporary. Additional states
might be added in the future.

In a similar fashion to 'NDA_NDM_STATE_MASK', add an MDB state mask uAPI
attribute that will allow the upcoming bulk deletion API to bulk delete
MDB entries with a certain state or any state.

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>
include/uapi/linux/if_bridge.h

index 2e23f99dc0f1584f4db53b4c52493c2dbf948bc0..a5b743a2f77500238b0dfe0f919284dabd671581 100644 (file)
@@ -757,6 +757,7 @@ enum {
        MDBE_ATTR_VNI,
        MDBE_ATTR_IFINDEX,
        MDBE_ATTR_SRC_VNI,
+       MDBE_ATTR_STATE_MASK,
        __MDBE_ATTR_MAX,
 };
 #define MDBE_ATTR_MAX (__MDBE_ATTR_MAX - 1)