IB/core: Simplify check for RoCE route resolve
authorParav Pandit <parav@mellanox.com>
Sun, 8 Jul 2018 10:41:17 +0000 (13:41 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 21:11:53 +0000 (15:11 -0600)
commit07e7056aff6c4377667fe1606ae7707b375b1caa
tree0f1cdebb935b3c0d66c414b2585b5f3d9355d16b
parent921c0f5ba58e4064deb18b4985a202508fc5527f
IB/core: Simplify check for RoCE route resolve

roce_resolve_route_from_path() resolves the route based on the netdevice
of the GID attribute, therefore there is no point in checking again if
the route is resolved matches the same interface it arrived.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/sa_query.c