On Wed, 11 Dec 2019 20:07:11 -0500 Vivien Didelot <vivien.didelot@xxxxxxxxx> 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@xxxxxxxxx> This patch depends on new kernel features, should be to iproute2-next