IB/mlx4: Initialize hop_limit when creating address handle
authorMatan Barak <matanb@mellanox.com>
Thu, 14 Jan 2016 15:47:02 +0000 (17:47 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:11 +0000 (10:34 +0000)
commitb121fad282f2ff012eca31efe4446dc9c170206a
treef066f213267074e2cde436f309ac8bd9107d4627
parentd2c0e5a66d9aa447155d03679f0eb19d160f99e3
IB/mlx4: Initialize hop_limit when creating address handle

commit 4e4081673445485aa6bc90383bdb83e7a96cc48a upstream.

Hop limit value wasn't copied from attributes  when ah was created.
This may influence packets for unconnected services to get dropped in
routers when endpoints are not in the same subnet.

Fixes: fa417f7b520e ("IB/mlx4: Add support for IBoE")
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/mlx4/ah.c