mlxsw: spectrum_router: fix xa_store() error checking
authorYuan Can <yuancan@huawei.com>
Thu, 17 Oct 2024 02:32:23 +0000 (10:32 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 11:01:55 +0000 (13:01 +0200)
commitf7b4cf0306bbea500a613e4b618576452c1df4ba
tree3598cff1f1cb8b57f3e30df827e1439b17c70dd7
parentfa287557e6d41ee224ab82baa73b538e6031b0ed
mlxsw: spectrum_router: fix xa_store() error checking

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c