]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mlxsw: spectrum_router: fix xa_store() error checking
authorYuan Can <yuancan@huawei.com>
Thu, 17 Oct 2024 02:32:23 +0000 (10:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:36 +0000 (02:02 +0100)
commit9fd5161b8f01a05a0e3f9bc0647bc4db1e96e6c7
treef3d8698d4dc012819ebc264d16a675d588d713b5
parent55a8861cf290a45a9de8e24b8c934a4ab4977f20
mlxsw: spectrum_router: fix xa_store() error checking

[ Upstream commit f7b4cf0306bbea500a613e4b618576452c1df4ba ]

It is meant to use xa_err() to extract the error encoded in the return
value of xa_store().

Fixes: 44c2fbebe18a ("mlxsw: spectrum_router: Share nexthop counters in resilient groups")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20241017023223.74180-1-yuancan@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c