net/mlx5: Expose command polling interface
authorMajd Dibbiny <majd@mellanox.com>
Thu, 9 Feb 2017 11:20:46 +0000 (13:20 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:19:43 +0000 (00:19 +0300)
commit4525abeaae54560254a1bb8970b3d4c225d32ef4
tree788b9494204061c03e95661a51067864e11d9f3b
parent3834a5e62617603673474ada9831aa4bda955e03
net/mlx5: Expose command polling interface

Add a new interface for commands execution that allows the
caller to wait for the command's completion in a busy-wait
loop (polling mode).

This is useful if we want to execute a command in a polling mode
while the driver is working in events mode for the rest of
the commands.
This interface will be used in the downstream patches.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
include/linux/mlx5/driver.h