diff options
author | 2016-01-04 10:49:54 +0200 | |
---|---|---|
committer | 2016-01-19 15:26:56 -0500 | |
commit | c3efe7500add077f79d37b18e9c66df6621409b6 (patch) | |
tree | c58ce0d2c62daabae7a900fd48ea1a45614a1dd0 /drivers/infiniband/hw/ocrdma | |
parent | IB/core: Rename rdma_addr_find_dmac_by_grh (diff) | |
download | linux-c3efe7500add077f79d37b18e9c66df6621409b6.tar.gz linux-c3efe7500add077f79d37b18e9c66df6621409b6.tar.bz2 linux-c3efe7500add077f79d37b18e9c66df6621409b6.zip |
IB/core: Use hop-limit from IP stack for RoCE
Previously, IPV6_DEFAULT_HOPLIMIT was used as the hop limit value for
RoCE. Fixing that by taking ip4_dst_hoplimit and ip6_dst_hoplimit as
hop limit values.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c index 850e0d11708c..3790771f2baa 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c @@ -154,7 +154,8 @@ struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr) (!rdma_link_local_addr((struct in6_addr *)attr->grh.dgid.raw))) { status = rdma_addr_find_l2_eth_by_grh(&sgid, &attr->grh.dgid, attr->dmac, &vlan_tag, - &sgid_attr.ndev->ifindex); + &sgid_attr.ndev->ifindex, + NULL); if (status) { pr_err("%s(): Failed to resolve dmac from gid." "status = %d\n", __func__, status); |