Skip to content

Commit

Permalink
apps.mellanox.connectx_test: make sure links are up in basic_match
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Mar 9, 2022
1 parent d1601f4 commit 328ba09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/apps/mellanox/connectx_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ function basic_match (pci0, pci1)

engine.configure(c)

print("waiting for linkup...")
lib.waitfor(function ()
return engine.app_table.nic0.hca:linkup()
and engine.app_table.nic1.hca:linkup()
end)

engine.main({duration = 1, report = false})
engine.report_links()
engine.report_apps()
Expand Down

0 comments on commit 328ba09

Please sign in to comment.