]> git.itanic.dy.fi Git - linux-stable/commit
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)
commite37a11fca41864c9f652ff81296b82e6f65a4242
tree55b397a396e3d3d3d83ff5a1c607447783760fe2
parentb6895d0ac9d7a3d29f9f238a2688b3b66da71692
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>
include/uapi/linux/if_bridge.h