RDMA/mlx5: Refactor DV create flow
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 4 May 2020 05:30:11 +0000 (08:30 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 May 2020 18:55:40 +0000 (15:55 -0300)
commitb9019507aa6e3e6a039573eb6743b38bf846771b
tree034d6383aff12fe3b68176ee7fb3901f41ed5fa5
parent10c261551359e37670a200c55c492f4aba7d23ed
RDMA/mlx5: Refactor DV create flow

Move part of the code that get the destinations into function so the code
will be more readable.  In addition change the variables definition to be
in reversed christmas tree.

Link: https://lore.kernel.org/r/20200504053012.270689-4-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/flow.c