]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Fix return value of poll routine
authorDevesh Sharma <devesh.sharma@broadcom.com>
Thu, 29 Jun 2017 19:28:17 +0000 (12:28 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:50 +0000 (11:20 -0400)
commit5b0f0540aae972f7a010151e6076b0c9d3b0d55e
treea22252253c2a494546587640fb30700fbbd987d4
parentd27e7667d5ca3603d46d6565571d1e9bae438204
RDMA/bnxt_re: Fix return value of poll routine

Fix the incorrect reporting of number of polled
entries by taking into account the max CQ depth
in the driver.

Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c