net/mlx5_core: Prepare cmd interface to system errors handling
authorEli Cohen <eli@mellanox.com>
Thu, 8 Oct 2015 14:13:58 +0000 (17:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:27:48 +0000 (07:27 -0700)
commit020446e01eebc9dbe7eda038e570ab9c7ab13586
tree5d8f970c6061ae1ef437856a8b6bd0cc187357d3
parent5a7883989b1c57513bb4067ca4b42c96d449d1a5
net/mlx5_core: Prepare cmd interface to system errors handling

In preparation to handling system errors at the mlx5_core level, change the
interface of cmd_work_handler to accept a 64 bit argument for the vector.

This allows to encode a flag that signifies when the handler is called
as a result of a driver logic that wishes to terminate commands that
the hardware may not be able to terminate. Such command completions
are detected at the handler and proper return status is encoded.

To be able to terminate page handler commands, we make sure to set
the corresponding bit in the bitmask.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
include/linux/mlx5/driver.h