aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2017-09-14 18:22:50 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-10-14 11:22:12 -0700
commitb5ae577741bec22b584fa704076ccd8221cad19d (patch)
tree43e7e651b63a3ad8bbd1c2630101555c5fbb45da /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h
parentnet/mlx5e: IPoIB, Add PKEY child interface ethtool ops (diff)
downloadlinux-dev-b5ae577741bec22b584fa704076ccd8221cad19d.tar.xz
linux-dev-b5ae577741bec22b584fa704076ccd8221cad19d.zip
net/mlx5e: IPoIB, Modify rdma netdev allocate and free to support PKEY
Resources such as FT, QPN HT and mdev resources should be allocated only by parent netdev. Shared resources are allocated and freed by the parent interface since the parent is always present and created before the IPoIB PKEY sub-interface. 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.h1
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 a50c1a19550e..49008022c306 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 @@ extern const struct ethtool_ops mlx5i_pkey_ethtool_ops;
struct mlx5i_priv {
struct rdma_netdev rn; /* keep this first */
struct mlx5_core_qp qp;
+ bool sub_interface;
u32 qkey;
u16 pkey_index;
struct mlx5i_pkey_qpn_ht *qpn_htbl;