2 Commits

Author SHA1 Message Date
Xinghai Cen
9a7735ee77 Perftest: Fix failure in creating cq when create cq ex is not
The previous TD lock-free patch introduced ibv_create_cq_ex() to
perftest, but it breaks the provider devices which do not support
this API yet. For these devices calling this API leads to an errno
of EOPNOTSUPP. So add a check of errno, and if it is EOPNOTSUPP,
use ibv_create_cq() as a fallback.

Fixes: b6f957f ("Perftest: Add support for TD lock-free mode")
(cherry picked from commit c6e2261f2d5be0856a7e2be14ae794a0ef8649df)
2024-09-06 12:54:19 +08:00
Xinghai Cen
e6d00e04be Perftest: Add support for TD lock-free mode
Add support for TD lock-free mode
New option:  --no_lock

        Usage example:
        ib_send_bw -d hns_0 --no_lock
        ib_send_bw -d hns_0 --no_lock 192.168.100.100

Signed-off-by: Xinghai Cen <cenxinghai@h-partners.com>
(cherry picked from commit 621caab096092f45ac8e5b5d74a16467e4f8df4c)
2024-08-21 22:09:07 +08:00