]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25d46275ebaeaafc4a6f224735a0cb96b6a043d1
tree9e713bef0935093568dad32ca96c1c92f19fff10
parente0e044798cd07b90f23ac24d902cd5a19220912f
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