]> git.baikalelectronics.ru Git - kernel.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)
commitb6ee118806bbeb1a3123d7b12cdeff7a9b41b759
tree942b5a6b6b866be89d72e4eba619022615a6f3ce
parent46675762b27e289f79be1218c2314eff1d96751d
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