]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: IPoIB, Move underlay QP init/uninit to separate functions
authorAlex Vesker <valex@mellanox.com>
Tue, 12 Sep 2017 11:11:29 +0000 (14:11 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Oct 2017 18:22:06 +0000 (11:22 -0700)
commitc8249eda7fac00b55eca17ab05207be291d91a3f
tree942b5a6b6b866be89d72e4eba619022615a6f3ce
parent7c39afb394c79e72c3795b4a42d55155b34ee073
net/mlx5e: IPoIB, Move underlay QP init/uninit to separate functions

During the creation of the underlay QP the PKEY index is unknown, the
PKEY index is known only when calling ndo_open.
PKEY index attached to the QP during state modification.

Splitting the functions will also make the code symmetric and more
readable. This split is also required for later PKEY support to be
called with the PKEY index during ndo_open.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c