Thread (17 messages) 17 messages, 3 authors, 2023-10-27

Re: [PATCH net-next v2 07/13] bridge: add MDB get uAPI attributes

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2023-10-26 06:22:47
Also in: bridge

On 10/25/23 15:30, Ido Schimmel wrote:
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 <idosch@nvidia.com>
---

Notes:
     v2:
     * Add comment.

  include/uapi/linux/if_bridge.h | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help