]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Limit DMAC resolution to userspace QPs
authorParav Pandit <parav@mellanox.com>
Tue, 9 Jan 2018 13:24:51 +0000 (15:24 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jan 2018 22:33:21 +0000 (15:33 -0700)
commit2cb49d55c652403d07db8b795d899826eb2127ad
tree74a660a4d09192ee5d81aacb968f556f8c158602
parent8121af0959d8b054196540881b29833c544c2fb6
IB/core: Limit DMAC resolution to userspace QPs

Currently ah_attr is initialized by the ib_cm layer for rdma_cm
based applications. For RoCE transport ah_attr.roce.dmac is already
initialized by ib_cm, rdma_cm either from wc, path record, route
resolve, explicit path record setting depending on active or passive
side QP. Therefore avoid resolving DMAC for QP of kernel consumers.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c