OSDN Git Service

net/mlx5: Open-code create and destroy QP calls
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 2 Apr 2020 12:17:40 +0000 (15:17 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Apr 2020 12:53:18 +0000 (15:53 +0300)
commitec44e72b73b74af489196352152e53a20c8ad5eb
treef4ab2ac1651d1d414e83b5a017de8a1b649af52b
parentbb7fc863729b45f0fbcdea991d0465d855ffd831
net/mlx5: Open-code create and destroy QP calls

FPGA, IPoIB and SW steering don't need anything from the
mlx5_core_create_qp() and mlx5_core_destroy_qp() except calls
to mlx5_cmd_exec().

Let's open-code it, so we will be able to move qp.c to mlx5_ib.

Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c