]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2773385aa7f6aa6691527c38ca2ad05a949e5ce0
treea5fb3a307d27bbd5d6bc7b917e7a0eb95ffebc9b
parente989d55a7df301c1ef8354be1d1774f7cd1c21cd
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