Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
[linux-2.6-block.git] / drivers / infiniband / core / sa_query.c
index 8e3bf6c8d3c3ef120e3e93145583af0006eba53e..b5656a2298ee0b1aa88f0cf50672f533b0a0fb6e 100644 (file)
@@ -1070,7 +1070,7 @@ int ib_init_ah_from_path(struct ib_device *device, u8 port_num,
                }
        }
 
-       if (rec->hop_limit > 1 || use_roce) {
+       if (rec->hop_limit > 0 || use_roce) {
                ah_attr->ah_flags = IB_AH_GRH;
                ah_attr->grh.dgid = rec->dgid;