diff options
author | Weihang Li <liweihang@hisilicon.com> | 2019-08-08 17:53:52 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-08-12 17:45:09 +0300 |
commit | 249f2f921f24db878b0cc5da80cb15d531587d79 (patch) | |
tree | c988bac324331bddb818f86f88cfaa7031187028 /drivers/infiniband/hw/hns | |
parent | 260c3b3499198b2cfa911ea7fb4f28bb129ef1e8 (diff) | |
download | linux-249f2f921f24db878b0cc5da80cb15d531587d79.tar.xz |
RDMA/hns: Remove redundant print in hns_roce_v2_ceq_int()
There is no need to tell users when eq->cons_index is overflow, we
just set it back to zero.
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1565276034-97329-13-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 4de5f848f91f..a1f62e072753 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5009,10 +5009,9 @@ static int hns_roce_v2_aeq_int(struct hns_roce_dev *hr_dev, ++eq->cons_index; aeqe_found = 1; - if (eq->cons_index > (2 * eq->entries - 1)) { - dev_warn(dev, "cons_index overflow, set back to 0.\n"); + if (eq->cons_index > (2 * eq->entries - 1)) eq->cons_index = 0; - } + hns_roce_v2_init_irq_work(hr_dev, eq, qpn, cqn); aeqe = next_aeqe_sw_v2(eq); |