]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/hns: Fix ah error counter in sw stat not increasing
authorJunxian Huang <huangjunxian6@hisilicon.com>
Thu, 12 Sep 2024 11:57:00 +0000 (19:57 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 16 Sep 2024 08:21:58 +0000 (11:21 +0300)
commit39c047d4047a1242aeefa87513174b56a91080ab
tree700106890c301840c4409fdf253028cb8c6b6b81
parentcc5b9b48d44756a87170f3901c6c2fd99e6b89b2
RDMA/hns: Fix ah error counter in sw stat not increasing

There are several error cases where hns_roce_create_ah() returns
directly without jumping to sw stat path, thus leading to a problem
that the ah error counter does not increase.

Fixes: ee20cc17e9d8 ("RDMA/hns: Support DSCP")
Fixes: eb7854d63db5 ("RDMA/hns: Support SW stats with debugfs")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20240912115700.2016443-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_ah.c