]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e48c26d5e392e2b69639fc08c98a0db8fac91ef
tree5d8f970c6061ae1ef437856a8b6bd0cc187357d3
parent78dbced42f82ddc3faafb0f4ca8e9049433d8ea7
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