Subject: Re: [PATCH iproute2 v4] iplink: add support for STP xstats

From: Stephen Hemminger <[email-masked]>
Date: Mon, 16 Dec 2019 20:45:41 -0800

On Wed, 11 Dec 2019 20:07:11 -0500
Vivien Didelot <[email-masked]> 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 <[email-masked]>

This patch depends on new kernel features, should be to iproute2-next