Thread (13 messages) 13 messages, 3 authors, 2025-06-10

Re: [PATCH iproute2-next v2 1/4] ip: ipstats: Iterate all xstats attributes

From: Ido Schimmel <idosch@nvidia.com>
Date: 2025-06-10 07:15:06
Also in: bridge

On Mon, Jun 09, 2025 at 06:05:09PM +0200, Petr Machata wrote:
ipstats_stat_desc_show_xstats() operates by first parsing the attribute
stream into a type-indexed table, and then accessing the right attribute.
But bridge VLAN stats are given as several BRIDGE_XSTATS_VLAN attributes,
one per VLAN. With the above approach to parsing, only one of these
attributes would be shown. Instead, iterate the stream of attributes and
call the show_cb for each one with a matching type.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help