]> git.baikalelectronics.ru Git - kernel.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)
commite5aeabcf57d4397a985479b6cf5d0301a5c973f9
tree43e7e651b63a3ad8bbd1c2630101555c5fbb45da
parent56b00054903a3ba3ba8a0e68e75f7873e94b7cd6
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