]> 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)
commit912fd75870d408c0e73793808516af68b19b1b90
treeb4e9b2e4e6ab9a86544ab1e0682e0e4ab354e22e
parent2cb49d55c652403d07db8b795d899826eb2127ad
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