This adds rx_bpdu, tx_bpdu, rx_tcn, tx_tcn, transition_blk, transition_fwd xstats counters to the bridge ports copied over via netlink, providing useful information for STP.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -156,6 +156,15 @@ struct bridge_vlan_xstats { · 155 unmodified lines | |||
| 156 | __u32 pad2; | 156 | __u32 pad2; |
| 157 | }; | 157 | }; |
| 158 | 158 | ||
| 159 | struct bridge_stp_xstats { | ||
| 160 | __u64 transition_blk; | ||
| 161 | __u64 transition_fwd; | ||
| 162 | __u64 rx_bpdu; | ||
| 163 | __u64 tx_bpdu; | ||
| 164 | __u64 rx_tcn; | ||
| 165 | __u64 tx_tcn; | ||
| 166 | }; | ||
| 167 | |||
| 159 | /* Bridge multicast database attributes | 168 | /* Bridge multicast database attributes |
| 160 | * [MDBA_MDB] = { | 169 | * [MDBA_MDB] = { |
| 161 | * [MDBA_MDB_ENTRY] = { | 170 | * [MDBA_MDB_ENTRY] = { |
| @@ -262,6 +271,7 @@ enum { · 100 unmodified lines | |||
| 262 | BRIDGE_XSTATS_VLAN, | 271 | BRIDGE_XSTATS_VLAN, |
| 263 | BRIDGE_XSTATS_MCAST, | 272 | BRIDGE_XSTATS_MCAST, |
| 264 | BRIDGE_XSTATS_PAD, | 273 | BRIDGE_XSTATS_PAD, |
| 274 | BRIDGE_XSTATS_STP, | ||
| 265 | __BRIDGE_XSTATS_MAX | 275 | __BRIDGE_XSTATS_MAX |
| 266 | }; | 276 | }; |
| 267 | #define BRIDGE_XSTATS_MAX (__BRIDGE_XSTATS_MAX - 1) | 277 | #define BRIDGE_XSTATS_MAX (__BRIDGE_XSTATS_MAX - 1) |