summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_addr.h
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2016-01-04 10:49:54 +0200
committerDoug Ledford <dledford@redhat.com>2016-01-19 15:26:56 -0500
commitc3efe7500add077f79d37b18e9c66df6621409b6 (patch)
treec58ce0d2c62daabae7a900fd48ea1a45614a1dd0 /include/rdma/ib_addr.h
parentf7f4b23e27f7561330ef13f93dbe8f2dc410efa7 (diff)
downloadlinux-stable-c3efe7500add077f79d37b18e9c66df6621409b6.tar.gz
linux-stable-c3efe7500add077f79d37b18e9c66df6621409b6.tar.bz2
linux-stable-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 'include/rdma/ib_addr.h')
-rw-r--r--include/rdma/ib_addr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h
index 73fd088dde56..c34c9002460c 100644
--- a/include/rdma/ib_addr.h
+++ b/include/rdma/ib_addr.h
@@ -84,6 +84,7 @@ struct rdma_dev_addr {
enum rdma_transport_type transport;
struct net *net;
enum rdma_network_type network;
+ int hoplimit;
};
/**
@@ -132,7 +133,8 @@ int rdma_addr_size(struct sockaddr *addr);
int rdma_addr_find_smac_by_sgid(union ib_gid *sgid, u8 *smac, u16 *vlan_id);
int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid,
const union ib_gid *dgid,
- u8 *smac, u16 *vlan_id, int *if_index);
+ u8 *smac, u16 *vlan_id, int *if_index,
+ int *hoplimit);
static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr)
{