|
@@ -904,13 +904,14 @@ static ssize_t ucma_query_path(struct ucma_context *ctx,
|
|
|
|
|
|
resp->path_data[i].flags = IB_PATH_GMP | IB_PATH_PRIMARY |
|
|
|
IB_PATH_BIDIRECTIONAL;
|
|
|
- if (rec->rec_type == SA_PATH_REC_TYPE_IB) {
|
|
|
- ib_sa_pack_path(rec, &resp->path_data[i].path_rec);
|
|
|
- } else {
|
|
|
+ if (rec->rec_type == SA_PATH_REC_TYPE_OPA) {
|
|
|
struct sa_path_rec ib;
|
|
|
|
|
|
sa_convert_path_opa_to_ib(&ib, rec);
|
|
|
ib_sa_pack_path(&ib, &resp->path_data[i].path_rec);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ ib_sa_pack_path(rec, &resp->path_data[i].path_rec);
|
|
|
}
|
|
|
}
|
|
|
|