diff options
-rw-r--r-- | drivers/infiniband/core/sa_query.c | 6 | ||||
-rw-r--r-- | include/rdma/ib_sa.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 934f45e79e5e..9838ca484389 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c | |||
@@ -652,6 +652,12 @@ void ib_sa_unpack_path(void *attribute, struct ib_sa_path_rec *rec) | |||
652 | } | 652 | } |
653 | EXPORT_SYMBOL(ib_sa_unpack_path); | 653 | EXPORT_SYMBOL(ib_sa_unpack_path); |
654 | 654 | ||
655 | void ib_sa_pack_path(struct ib_sa_path_rec *rec, void *attribute) | ||
656 | { | ||
657 | ib_pack(path_rec_table, ARRAY_SIZE(path_rec_table), rec, attribute); | ||
658 | } | ||
659 | EXPORT_SYMBOL(ib_sa_pack_path); | ||
660 | |||
655 | static void ib_sa_path_rec_callback(struct ib_sa_query *sa_query, | 661 | static void ib_sa_path_rec_callback(struct ib_sa_query *sa_query, |
656 | int status, | 662 | int status, |
657 | struct ib_sa_mad *mad) | 663 | struct ib_sa_mad *mad) |
diff --git a/include/rdma/ib_sa.h b/include/rdma/ib_sa.h index 8275e539bace..125f8714301d 100644 --- a/include/rdma/ib_sa.h +++ b/include/rdma/ib_sa.h | |||
@@ -402,6 +402,12 @@ int ib_init_ah_from_path(struct ib_device *device, u8 port_num, | |||
402 | struct ib_ah_attr *ah_attr); | 402 | struct ib_ah_attr *ah_attr); |
403 | 403 | ||
404 | /** | 404 | /** |
405 | * ib_sa_pack_path - Conert a path record from struct ib_sa_path_rec | ||
406 | * to IB MAD wire format. | ||
407 | */ | ||
408 | void ib_sa_pack_path(struct ib_sa_path_rec *rec, void *attribute); | ||
409 | |||
410 | /** | ||
405 | * ib_sa_unpack_path - Convert a path record from MAD format to struct | 411 | * ib_sa_unpack_path - Convert a path record from MAD format to struct |
406 | * ib_sa_path_rec. | 412 | * ib_sa_path_rec. |
407 | */ | 413 | */ |
@@ -418,4 +424,5 @@ int ib_sa_guid_info_rec_query(struct ib_sa_client *client, | |||
418 | void *context), | 424 | void *context), |
419 | void *context, | 425 | void *context, |
420 | struct ib_sa_query **sa_query); | 426 | struct ib_sa_query **sa_query); |
427 | |||
421 | #endif /* IB_SA_H */ | 428 | #endif /* IB_SA_H */ |