]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:35 +0000 (08:24 +0100)
commit656a7d6575336348000bcf42e9827b3b4ff95102
tree1e38783a63f9c78a08926c64f1b292401711cecd
parent661600ff77f142b26338eb795e5694a17a6df699
IB/mlx4: Check if GRH is available before using it

commit bf08e884bfd5be068fd2ccf2bc450f085d8dd853 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx4/qp.c