OpenCloudOS-Kernel/include/linux/mlx5
Mohamad Haj Yahia 65ee670845 net/mlx5: Add timeout handle to commands with callback
The current implementation does not handle timeout in case of command
with callback request, and this can lead to deadlock if the command
doesn't get fw response.
Add delayed callback timeout work before posting the command to fw.
In case of real fw command completion we will cancel the delayed work.
In case of fw command timeout the callback timeout handler will be
called and it will simulate fw completion with timeout error.

Fixes: e126ba97db ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-01 06:12:03 -04:00
..
cmd.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
cq.h net/mlx5_core: Use tasklet for user-space CQ completion events 2016-05-18 10:45:49 -04:00
device.h net/mlx5: Fix flow steering NIC capabilities check 2016-06-09 22:06:25 -07:00
doorbell.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
driver.h net/mlx5: Add timeout handle to commands with callback 2016-07-01 06:12:03 -04:00
fs.h net/mlx5_core: Flow counters infrastructure 2016-05-16 13:43:51 -04:00
mlx5_ifc.h net/mlx5: E-Switch, Modify node guid on vf set MAC 2016-06-09 22:06:26 -07: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 Round two of 4.7 rc fixes 2016-06-24 18:52:31 -07:00
srq.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
transobj.h IB/mlx5: Support setting Ethernet priority for Raw Packet QPs 2016-01-21 12:01:09 -05:00
vport.h net/mlx5: E-Switch, Modify node guid on vf set MAC 2016-06-09 22:06:26 -07:00