linux_dsm_epyc7002/include/linux/mlx5
Maor Gottlieb 89ea94a7b6 IB/mlx5: Reset flow support for IB kernel ULPs
The driver exposes interfaces that directly relate to HW state.
Upon fatal error, consumers of these interfaces (ULPs) that rely
on completion of all their posted work-request could hang, thereby
introducing dependencies in shutdown order. To prevent this from
happening, we manage the relevant resources (CQs, QPs) that are used
by the device. Upon a fatal error, we now generate simulated
completions for outstanding WQEs that were not completed at the
time the HW was reset.

It includes invoking the completion event handler for all involved
CQs so that the ULPs will poll those CQs. When polled we return
simulated CQEs with IB_WC_WR_FLUSH_ERR return code enabling ULPs
to clean up their  resources and not wait forever for completions
upon receiving remove_one.

The above change requires an extra check in the data path to make
sure that when device is in error state, the simulated CQEs will
be returned and no further WQEs will be posted.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-06-23 11:02:45 -04:00
..
cmd.h
cq.h IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
device.h net/mlx5: Fix flow steering NIC capabilities check 2016-06-09 22:06:25 -07:00
doorbell.h
driver.h Primary 4.7 merge window changes 2016-05-20 14:35:07 -07:00
fs.h net/mlx5_core: Flow counters infrastructure 2016-05-16 13:43:51 -04:00
mlx5_ifc.h Mellanox shared code between RDMA and net-next trees 2016-06-17 20:15:31 -04:00
port.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-04-27 15:43:10 -04:00
qp.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-06-10 08:32:24 -07:00
srq.h
transobj.h
vport.h net/mlx5: E-Switch, Modify node guid on vf set MAC 2016-06-09 22:06:26 -07:00