[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4b46f59a-2676-6efd-fddf-c0fcbebdce0f@cumulusnetworks.com>
Date: Thu, 2 Jul 2020 13:01:26 +0300
From: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
To: Horatiu Vultur <horatiu.vultur@...rochip.com>,
roopa@...ulusnetworks.com, davem@...emloft.net, kuba@...nel.org,
jiri@...lanox.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, bridge@...ts.linux-foundation.org,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH net-next v3 1/3] bridge: uapi: mrp: Extend MRP attributes
to get the status
On 02/07/2020 11:13, Horatiu Vultur wrote:
> Add MRP attribute IFLA_BRIDGE_MRP_INFO to allow the userspace to get the
> current state of the MRP instances. This is a nested attribute that
> contains other attributes like, ring id, index of primary and secondary
> port, priority, ring state, ring role.
>
> Signed-off-by: Horatiu Vultur <horatiu.vultur@...rochip.com>
> ---
> include/uapi/linux/if_bridge.h | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
> index caa6914a3e53a..c114c1c2bd533 100644
> --- a/include/uapi/linux/if_bridge.h
> +++ b/include/uapi/linux/if_bridge.h
> @@ -166,6 +166,7 @@ enum {
> IFLA_BRIDGE_MRP_RING_STATE,
> IFLA_BRIDGE_MRP_RING_ROLE,
> IFLA_BRIDGE_MRP_START_TEST,
> + IFLA_BRIDGE_MRP_INFO,
> __IFLA_BRIDGE_MRP_MAX,
> };
>
> @@ -228,6 +229,22 @@ enum {
>
> #define IFLA_BRIDGE_MRP_START_TEST_MAX (__IFLA_BRIDGE_MRP_START_TEST_MAX - 1)
>
> +enum {
> + IFLA_BRIDGE_MRP_INFO_UNSPEC,
> + IFLA_BRIDGE_MRP_INFO_RING_ID,
> + IFLA_BRIDGE_MRP_INFO_P_IFINDEX,
> + IFLA_BRIDGE_MRP_INFO_S_IFINDEX,
> + IFLA_BRIDGE_MRP_INFO_PRIO,
> + IFLA_BRIDGE_MRP_INFO_RING_STATE,
> + IFLA_BRIDGE_MRP_INFO_RING_ROLE,
> + IFLA_BRIDGE_MRP_INFO_TEST_INTERVAL,
> + IFLA_BRIDGE_MRP_INFO_TEST_MAX_MISS,
> + IFLA_BRIDGE_MRP_INFO_TEST_MONITOR,
> + __IFLA_BRIDGE_MRP_INFO_MAX,
> +};
> +
> +#define IFLA_BRIDGE_MRP_INFO_MAX (__IFLA_BRIDGE_MRP_INFO_MAX - 1)
> +
> struct br_mrp_instance {
> __u32 ring_id;
> __u32 p_ifindex;
>
Acked-by: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Powered by blists - more mailing lists