net/mlx5: Provide simplified command interfaces
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 5 Apr 2020 17:57:00 +0000 (20:57 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Apr 2020 12:53:17 +0000 (15:53 +0300)
commitbb7fc863729b45f0fbcdea991d0465d855ffd831
tree8b18914c25ac6581da2773f0efbdd1d50c182cfb
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
net/mlx5: Provide simplified command interfaces

Many mlx5_cmd_exec() callers are not interested in the output from that
command or have standard in/out structures. Those callers simply allocate
those structure on the stack and use sizeof() to provide in/out arguments.

In this naive approach provide simplified versions of mlx5_cmd_exec().

Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/driver.h