mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
f7f4b23e27
commit
c3efe7500a
6 changed files with 26 additions and 19 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue