Thread (14 messages) 14 messages, 3 authors, 2025-06-09

Re: [PATCH iproute2-next 4/4] ip: iplink_bridge: Support bridge VLAN stats in `ip stats'

From: Ido Schimmel <idosch@nvidia.com>
Date: 2025-06-08 14:44:51

On Fri, Jun 06, 2025 at 05:04:53PM +0200, Petr Machata wrote:
+static const struct ipstats_stat_desc_xstats
+ipstats_stat_desc_xstats_slave_bridge_vlan = {
+	.desc = {
+		.name = "vlan",
+		.kind = IPSTATS_STAT_DESC_KIND_LEAF,
+		.show = &bridge_stat_desc_show_xstats,
+		.pack = &ipstats_stat_desc_pack_xstats,
+	},
+	.xstats_at = IFLA_STATS_LINK_XSTATS_SLAVE,
This will only show VLAN stats for bridge ports, but they also exist for
the bridge itself inside the IFLA_STATS_LINK_XSTATS nest
+	.link_type_at = LINK_XSTATS_TYPE_BRIDGE,
+	.inner_at = BRIDGE_XSTATS_VLAN,
+	.show_cb = &bridge_print_stats_vlan,
+};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help