Skip to content

Commit 83c1bbe

Browse files
idoschdavem330
authored andcommitted
bridge: add MDB get uAPI attributes
Add MDB get attributes that correspond to the MDB set attributes used in RTM_NEWMDB messages. Specifically, add 'MDBA_GET_ENTRY' which will hold a 'struct br_mdb_entry' and 'MDBA_GET_ENTRY_ATTRS' which will hold 'MDBE_ATTR_*' attributes that are used as indexes (source IP and source VNI). An example request will look as follows: [ struct nlmsghdr ] [ struct br_port_msg ] [ MDBA_GET_ENTRY ] struct br_mdb_entry [ MDBA_GET_ENTRY_ATTRS ] [ MDBE_ATTR_SOURCE ] struct in_addr / struct in6_addr [ MDBE_ATTR_SRC_VNI ] u32 Signed-off-by: Ido Schimmel <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 14c32a4 commit 83c1bbe

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/uapi/linux/if_bridge.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,24 @@ enum {
723723
};
724724
#define MDBA_SET_ENTRY_MAX (__MDBA_SET_ENTRY_MAX - 1)
725725

726+
/* [MDBA_GET_ENTRY] = {
727+
* struct br_mdb_entry
728+
* [MDBA_GET_ENTRY_ATTRS] = {
729+
* [MDBE_ATTR_SOURCE]
730+
* struct in_addr / struct in6_addr
731+
* [MDBE_ATTR_SRC_VNI]
732+
* u32
733+
* }
734+
* }
735+
*/
736+
enum {
737+
MDBA_GET_ENTRY_UNSPEC,
738+
MDBA_GET_ENTRY,
739+
MDBA_GET_ENTRY_ATTRS,
740+
__MDBA_GET_ENTRY_MAX,
741+
};
742+
#define MDBA_GET_ENTRY_MAX (__MDBA_GET_ENTRY_MAX - 1)
743+
726744
/* [MDBA_SET_ENTRY_ATTRS] = {
727745
* [MDBE_ATTR_xxx]
728746
* ...

0 commit comments

Comments
 (0)