]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd5ea17fd5677e7ba2d531256225bcd4f5138f07
treeb4e9b2e4e6ab9a86544ab1e0682e0e4ab354e22e
parentc87d9a9c7ed7cc5d4b67231a164c30dc113109e7
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