IB/ipoib: Add ability to set PKEY index to lower device driver
authorAlex Vesker <valex@mellanox.com>
Wed, 14 Jun 2017 19:18:48 +0000 (22:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Oct 2017 18:22:08 +0000 (11:22 -0700)
commit980f91c3a62852ebfd0e60387d4a9d13934d9760
treea5fb3a307d27bbd5d6bc7b917e7a0eb95ffebc9b
parentb4b678b06f6eef18bff44a338c01870234db0bc9
IB/ipoib: Add ability to set PKEY index to lower device driver

To support passing child interfaces to the lower device a new
rdma_netdev function was used, set_id. This will allow us to
attach the PKEY index lower device resources such as TIS/QP.
For devices that do not support offloads in IPoIB same logic
will be used, setting the PKEY index to priv struct.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c