Commit d8cc402
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments