]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3153275e46830eafbb7d1930b5cb0f981b41c64f
tree788b9494204061c03e95661a51067864e11d9f3b
parentc18e63bbd25a467d8e02b8129a19f944725f4490
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