]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: IPoIB, Modify rdma netdev allocate and free to support PKEY
authorAlex Vesker <valex@mellanox.com>
Thu, 14 Sep 2017 15:22:50 +0000 (18:22 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Oct 2017 18:22:12 +0000 (11:22 -0700)
commitb5ae577741bec22b584fa704076ccd8221cad19d
tree43e7e651b63a3ad8bbd1c2630101555c5fbb45da
parent6a910233c1eb19673dd0f37f1d72d7cdc419e176
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>
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h