]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: nexthop: avoid duplicate NHA_HW_STATS_ENABLE on nexthop group dump
authorFernando Fernandez Mancera <fmancera@suse.de>
Thu, 2 Apr 2026 07:26:12 +0000 (09:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:37 +0000 (13:30 +0200)
commite3d7a68d0c40ad2cf28f86fa0f59c3ccf786abc6
treef103d81f91c8b10427e5b70c5ded3571ffc018cc
parentd04cc16d3624218a5458b2b664ae431f1b3b334d
ipv4: nexthop: avoid duplicate NHA_HW_STATS_ENABLE on nexthop group dump

[ Upstream commit 06aaf04ca815f7a1f17762fd847b7bc14b8833fb ]

Currently NHA_HW_STATS_ENABLE is included twice everytime a dump of
nexthop group is performed with NHA_OP_FLAG_DUMP_STATS. As all the stats
querying were moved to nla_put_nh_group_stats(), leave only that
instance of the attribute querying.

Fixes: 5072ae00aea4 ("net: nexthop: Expose nexthop group HW stats to user space")
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260402072613.25262-1-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/nexthop.c