OSDN Git Service

RDMA/hns: Optimize post and poll process
authorLang Cheng <chenglang@huawei.com>
Wed, 20 May 2020 13:53:13 +0000 (21:53 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 May 2020 17:02:11 +0000 (14:02 -0300)
commit0db6570947f43a39664ab8665f58101f112cedf3
treee48098710aacfe8676ab4d5d1f9a3160ffb5166f
parent05e6a5a63579d4c55cc996e5148bd6da9ed48860
RDMA/hns: Optimize post and poll process

Add unlikely() and likely() to optimize main I/O process code.

Link: https://lore.kernel.org/r/1589982799-28728-4-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c