linux/drivers/infiniband/hw
Ariel Nahum 6a85820d32 IB/mlx4: Fix incorrect cq flushing in error state
commit 799cdaf8a9 upstream.

When handling a device internal error, the driver is responsible to
drain the completion queue with flush errors.

In case a completion queue was assigned to multiple send queues, the
driver iterates over the send queues and generates flush errors of
inflight wqes. The driver must correctly pass the wc array with an
offset as a result of the previous send queue iteration. Not doing so
will overwrite previously set completions and return a wrong number
of polled completions which includes ones which were not correctly set.

Fixes: 35f05dabf9 (IB/mlx4: Reset flow support for IB kernel ULPs)
Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-09-29 19:26:18 +02:00
..
amso1100 IB/core: Replace ib_umem's offset field with a full address 2014-12-15 18:13:35 -08:00
cxgb3 RDMA/cxgb3: Remove a couple unneeded conditions 2014-05-28 10:04:00 -07:00
cxgb4 infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses 2015-05-12 15:52:37 -04:00
ehca IB/ehca: use correct destination for memcpy 2015-05-11 17:14:37 -04:00
ipath VFS: assorted weird filesystems: d_inode() annotations 2015-04-15 15:06:58 -04:00
mlx4 IB/mlx4: Fix incorrect cq flushing in error state 2015-09-29 19:26:18 +02:00
mlx5 IB/mlx5: avoid destroying a NULL mr in reg_user_mr error flow 2015-09-29 19:26:17 +02:00
mthca IB/mad: add new ioctl to ABI to support new registration options 2014-08-10 20:36:00 -07:00
nes RDMA/nes: Report the actual address of the remote connecting peer 2015-05-05 09:18:01 -04:00
ocrdma RDMA/ocrdma: fix double free on pd 2015-08-03 09:29:15 -07:00
qib IB/qib: Change lkey table allocation to support more MRs 2015-09-29 19:26:16 +02:00
usnic IOMMU Updates for Linux v3.18 2014-10-15 07:23:49 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00