summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_addr.h
diff options
context:
space:
mode:
authorSomnath Kotur <Somnath.Kotur@Avagotech.Com>2015-12-23 13:56:51 +0100
committerDoug Ledford <dledford@redhat.com>2015-12-23 16:35:11 +0100
commitc865f24628b9310e1815d59f723a34ea3df4890f (patch)
treee750ee0e0e8170bb1c4c6ae274a222724ea9ba72 /include/rdma/ib_addr.h
parentIB/core: Add ROCE_UDP_ENCAP (RoCE V2) type (diff)
downloadlinux-c865f24628b9310e1815d59f723a34ea3df4890f.tar.xz
linux-c865f24628b9310e1815d59f723a34ea3df4890f.zip
IB/core: Add rdma_network_type to wc
Providers should tell IB core the wc's network type. This is used in order to search for the proper GID in the GID table. When using HCAs that can't provide this info, IB core tries to deep examine the packet and extract the GID type by itself. We choose sgid_index and type from all the matching entries in RDMA-CM based on hint from the IP stack and we set hop_limit for the IP packet based on above hint from IP stack. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Somnath Kotur <Somnath.Kotur@Avagotech.Com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_addr.h')
-rw-r--r--include/rdma/ib_addr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h
index 11528591d0d7..c799caacf353 100644
--- a/include/rdma/ib_addr.h
+++ b/include/rdma/ib_addr.h
@@ -83,6 +83,7 @@ struct rdma_dev_addr {
int bound_dev_if;
enum rdma_transport_type transport;
struct net *net;
+ enum rdma_network_type network;
};
/**