diff options
author | Alex Vesker <valex@mellanox.com> | 2017-09-13 12:17:50 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-10-14 11:22:09 -0700 |
commit | da34f1a85b78c2220dac1ce4f4c4595dd0cab5a9 (patch) | |
tree | 062d4b2bafa6241b3ea0695bfffe49ddd221db4f /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h | |
parent | IB/ipoib: Add ability to set PKEY index to lower device driver (diff) | |
download | linux-dev-da34f1a85b78c2220dac1ce4f4c4595dd0cab5a9.tar.xz linux-dev-da34f1a85b78c2220dac1ce4f4c4595dd0cab5a9.zip |
net/mlx5e: IPoIB, Support for setting PKEY index to underlay QP
Added a function to set PKEY index to IPoIB device driver using the
already present set_id function. PKEY index is attached to the QP
during state modification.
Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h index a0f405f520f7..9a729883c3b3 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h @@ -50,6 +50,7 @@ struct mlx5i_priv { struct rdma_netdev rn; /* keep this first */ struct mlx5_core_qp qp; u32 qkey; + u16 pkey_index; char *mlx5e_priv[0]; }; |