IB/core: Add rdma_network_type to wc
authorSomnath Kotur <Somnath.Kotur@Avagotech.Com>
Wed, 23 Dec 2015 12:56:51 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:35:11 +0000 (10:35 -0500)
commitc865f24628b9310e1815d59f723a34ea3df4890f
treee750ee0e0e8170bb1c4c6ae274a222724ea9ba72
parent7766a99fdcd30c78fc8299db9102e3624232007c
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>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/verbs.c
include/rdma/ib_addr.h
include/rdma/ib_verbs.h