]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc39e9d1094083ab055ac6005b466edb2eebdf448
tree8b18914c25ac6581da2773f0efbdd1d50c182cfb
parent9b8057e7f937f20763a90a8fc2333168af101732
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