]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Use GRH when the path hop-limit > 0
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 1 Mar 2016 16:52:23 +0000 (18:52 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Mar 2016 15:52:58 +0000 (10:52 -0500)
commitd1cffa26bb03a49106b885d0efcfa57c1dea6bb1
treeee2586a426241d0f1f9e4e9a94572d6c420a0d07
parentb53df28d6fb3628b3f43ee15b918c953a83acbce
IB/core: Use GRH when the path hop-limit > 0

According to IBTA spec v1.3 section 12.7.19, QPs should use GRH when
the path returned by the SA has hop-limit > 0. Currently, we do that
only for the > 1 case, fix that.

Fixes: 80e5da1d8983 ('IB/sa: Add ib_init_ah_from_path()')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c