IB/mlx4: Check if GRH is available before using it
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 10 Nov 2016 09:31:01 +0000 (11:31 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:32:51 +0000 (13:32 -0500)
commitbf08e884bfd5be068fd2ccf2bc450f085d8dd853
treeb7b2121841ad8ef990b5b30e3bb955312a7033ac
parent1f22e454df2eb99ba6b7ace3f594f6805cdf5cbc
IB/mlx4: Check if GRH is available before using it

Before reading GRH attributes, need to make sure AH contains GRH,
and in addition, initialize GID type.

Fixes: dbf727de7440 ('IB/core: Use GID table in AH creation and dmac resolution')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c