Skip to content

Commit e37a11f

Browse files
idoschdavem330
authored andcommitted
bridge: add MDB state mask uAPI attribute
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>
1 parent b6895d0 commit e37a11f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/uapi/linux/if_bridge.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ enum {
757757
MDBE_ATTR_VNI,
758758
MDBE_ATTR_IFINDEX,
759759
MDBE_ATTR_SRC_VNI,
760+
MDBE_ATTR_STATE_MASK,
760761
__MDBE_ATTR_MAX,
761762
};
762763
#define MDBE_ATTR_MAX (__MDBE_ATTR_MAX - 1)

0 commit comments

Comments
 (0)