]> git.karo-electronics.de Git - karo-tx-linux.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)
commit10d1dedf9b428ed776f244eb8b43f28974da3fb0
treea22252253c2a494546587640fb30700fbbd987d4
parent254cd2590d408f2c0375fbf73ef8250d47529e7b
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