[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2166597e-b5d2-ee1e-3dc3-bfacdf3cc8b8@gmail.com>
Date: Tue, 17 Dec 2019 09:35:09 -0700
From: David Ahern <dsahern@...il.com>
To: Vivien Didelot <vivien.didelot@...il.com>,
"David S. Miller" <davem@...emloft.net>
Cc: Roopa Prabhu <roopa@...ulusnetworks.com>,
Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
netdev@...r.kernel.org, bridge@...ts.linux-foundation.org,
Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...il.com>
Subject: Re: [PATCH iproute2 v4] iplink: add support for STP xstats
On 12/11/19 6:07 PM, Vivien Didelot wrote:
> Add support for the BRIDGE_XSTATS_STP xstats, as follow:
>
> # ip link xstats type bridge_slave dev lan4 stp
> lan4
> STP BPDU: RX: 0 TX: 61
> STP TCN: RX: 0 TX: 0
> STP Transitions: Blocked: 2 Forwarding: 1
>
> Or below as JSON:
>
> # ip -j -p link xstats type bridge_slave dev lan0 stp
> [ {
> "ifname": "lan0",
> "stp": {
> "rx_bpdu": 0,
> "tx_bpdu": 500,
> "rx_tcn": 0,
> "tx_tcn": 0,
> "transition_blk": 0,
> "transition_fwd": 0
> }
> } ]
>
> Signed-off-by: Vivien Didelot <vivien.didelot@...il.com>
> ---
> include/uapi/linux/if_bridge.h | 10 ++++++++++
> ip/iplink_bridge.c | 26 ++++++++++++++++++++++++++
> 2 files changed, 36 insertions(+)
>
applied to iproute2-next. Thanks
Powered by blists - more mailing lists