]> 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)
commit3ae912d8fd49cb391470512579e3cee70cffa2fb
tree8b18914c25ac6581da2773f0efbdd1d50c182cfb
parent0e6c92ce1d170795a396f8108369eb2c8412797f
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