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)
commitb96ac05a87da602d501b05883385a049862c0476
tree74a660a4d09192ee5d81aacb968f556f8c158602
parentb2bedfb39541a7e14798d066b6f8685d84c8fcf5
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