RDMA/hns: Remove unnecessary wrap around for EQ's consumer index
authorYixian Liu <liuyixian@huawei.com>
Fri, 5 Feb 2021 09:39:33 +0000 (17:39 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Feb 2021 00:25:26 +0000 (20:25 -0400)
commitcd0a4baf36dafb0a6d1a57be712ab6263ef169bc
tree64b93550bc14cc876f1d800a89266c65bcdcedc9
parent62490fd5a8654f9639a6766921ee72f5dbc6a479
RDMA/hns: Remove unnecessary wrap around for EQ's consumer index

The hns driver wrap around the consumer index of AEQ and CEQ when they
reach to two times of queue entries number for owner mechanism, actually,
it is unnecessary to wrap around since the hardware itself will mask it
before use.

Link: https://lore.kernel.org/r/1612517974-31867-12-git-send-email-liweihang@huawei.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c