IB/core: Attempt DMAC resolution for only RoCE
authorParav Pandit <parav@mellanox.com>
Tue, 9 Jan 2018 13:24:52 +0000 (15:24 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jan 2018 22:33:21 +0000 (15:33 -0700)
commitf2290d6d522dbcdb8c2bd36e98e57c05bf5ed523
treeb4e9b2e4e6ab9a86544ab1e0682e0e4ab354e22e
parentb96ac05a87da602d501b05883385a049862c0476
IB/core: Attempt DMAC resolution for only RoCE

Instead of returning 0 (success) for RoCE scenarios where DMAC should
not be resolved, avoid such attempt and make code consistent with
ib_create_user_ah().

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