IB/SA: Introduce path record specific types
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Thu, 27 Apr 2017 23:05:59 +0000 (19:05 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 1 May 2017 18:37:28 +0000 (14:37 -0400)
commitdfa834e1d97e24c7d6b7c5b102728d69d6361501
tree9e713bef0935093568dad32ca96c1c92f19fff10
parentc2f8fc4ec4400901e5561d4815deca19f395deb6
IB/SA: Introduce path record specific types

struct sa_path_rec has a gid_type field. This patch introduces a more
generic path record specific type 'rec_type' which is either IB, ROCE v1
or ROCE v2. The patch also provides conversion functions to get
a gid type from a path record type and vice versa

Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/uverbs_marshall.c
include/rdma/ib_sa.h