Skip to content

Commit d8cc402

Browse files
committed
infiniband-diags: Add build_dr_path_to_lid in new libdr
Add build_dr_path_to_lid() in a new static library (libdr) that is linked into all diags under src/. It follows switch Linear Forwarding Tables via live SMP queries to build a direct route (DR) path to a destination LID, with optional per-hop dumping and vport-LID resolution. This is needed for XDR: SMP via LID is not guaranteed to work in XDR fabrics, so utilities must be able to build and walk a direct route to reach a destination LID. Signed-off-by: Asaf Mazor <amazor@nvidia.com>
1 parent a7453f8 commit d8cc402

3 files changed

Lines changed: 448 additions & 0 deletions

File tree

infiniband-diags/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
publish_internal_headers(""
22
ibdiag_common.h
3+
ibdiag_dr.h
34
ibdiag_sa.h
45
)
56

@@ -10,6 +11,7 @@ install(FILES
1011

1112
add_library(ibdiags_tools STATIC
1213
ibdiag_common.c
14+
ibdiag_dr.c
1315
ibdiag_sa.c
1416
)
1517

0 commit comments

Comments
 (0)