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>
This commit is contained in:
Alex Vesker 2017-09-14 18:22:50 +03:00 • committed by Saeed Mahameed
commit b5ae577741
3 changed files with 36 additions and 18 deletions