aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2018-11-20 14:12:24 -0800
committerSaeed Mahameed <saeedm@mellanox.com>2018-11-26 13:39:34 -0800
commit71edc69ca1a78ce18411a540c550a4ef1eb017cd (patch)
tree9430bba73423981fa6d43d044bc2bcc46b7e1efb /include
parentnet/mlx5: FWPage, Use async events chain (diff)
downloadlinux-dev-71edc69ca1a78ce18411a540c550a4ef1eb017cd.tar.xz
linux-dev-71edc69ca1a78ce18411a540c550a4ef1eb017cd.zip
net/mlx5: CmdIF, Use async events chain
Remove the explicit call to mlx5_cmd_comp_handler on MLX5_EVENT_TYPE_CMD and let command interface to register its own handler when its ready. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 61088ad33500..a8d638134fc8 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -278,6 +278,8 @@ struct mlx5_cmd_stats {
};
struct mlx5_cmd {
+ struct mlx5_nb nb;
+
void *cmd_alloc_buf;
dma_addr_t alloc_dma;
int alloc_size;