IB/core: Add gid_type to gid attribute
authorMatan Barak <matanb@mellanox.com>
Wed, 23 Dec 2015 12:56:47 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:35:10 +0000 (10:35 -0500)
commitb39ffa1df505378336a85064ad9ec403765bbb0b
treead9fe1990542eb07f8358386fcae6097c2b3a478
parentcee3c4d0c56876f46f4584385603adb30a7cacf7
IB/core: Add gid_type to gid attribute

In order to support multiple GID types, we need to store the gid_type
with each GID. This is also aligned with the RoCE v2 annex "RoCEv2 PORT
GID table entries shall have a "GID type" attribute that denotes the L3
Address type". The currently supported GID is IB_GID_TYPE_IB which is
also RoCE v1 GID type.

This implies that gid_type should be added to roce_gid_table meta-data.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
13 files changed:
drivers/infiniband/core/cache.c
drivers/infiniband/core/cm.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/device.c
drivers/infiniband/core/multicast.c
drivers/infiniband/core/roce_gid_mgmt.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/uverbs_marshall.c
drivers/infiniband/core/verbs.c
include/rdma/ib_cache.h
include/rdma/ib_sa.h
include/rdma/ib_verbs.h