Commit 98bfb36
committed
Perftest: Add ibv_reg_mr_ex support with TLP Processing Hints and refactor MR registration
* Add support for new unified ibv_reg_mr_ex API with proper mask
handling:
- Host memory: IBV_REG_MR_MASK_ADDR + in.addr
- DMABUF: IBV_REG_MR_MASK_FD | IBV_REG_MR_MASK_IOVA |
IBV_REG_MR_MASK_FD_OFFSET
- TPH: IBV_REG_MR_MASK_DMAH + in.dmah
* Implement TLP Processing Hints (TPH) feature:
- Add --tph_mem flag with memory type support (volatile/vm,
persistent/pm)
- Add --cpu_id flag to specify CPU core ID for TLP processing
- Add --ph flag for processing hints (0=Bidirectional, 1=Requester,
2=Target, 3=Target with priority)
- Add validation requiring --tph_mem/--cpu_id flags to be used with --ph.
* Major refactoring of create_single_mr() into focused helper functions:
- Extract setup_mr_flags() for consolidating access flag logic
- Extract initialize_buffer_content() for buffer initialization
patterns
- Create register_mr_ex() for new unified API handling
- Create register_mr() for standard APIs (ibv_reg_mr +
ibv_reg_dmabuf_mr + mlx5dv_reg_dmabuf_mr))
- Create register_memory_region() as intelligent coordinator with
function pointer selection.
- ibv_reg_mr_ex doesn't support data_direct feature which requires
mlx5dv_reg_dmabuf_mr specifically
Add logic to bypass ibv_reg_mr_ex when use_data_direct.
Signed-off-by: Shmuel Shaul <[email protected]>1 parent c543c84 commit 98bfb36
File tree
6 files changed
+341
-76
lines changed- man
- src
6 files changed
+341
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
556 | 563 | | |
557 | 564 | | |
558 | 565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
417 | 433 | | |
418 | 434 | | |
419 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
495 | 504 | | |
496 | 505 | | |
497 | 506 | | |
| |||
991 | 1000 | | |
992 | 1001 | | |
993 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
994 | 1006 | | |
995 | 1007 | | |
996 | 1008 | | |
| |||
2004 | 2016 | | |
2005 | 2017 | | |
2006 | 2018 | | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2007 | 2045 | | |
2008 | 2046 | | |
2009 | 2047 | | |
| |||
2559 | 2597 | | |
2560 | 2598 | | |
2561 | 2599 | | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
2562 | 2605 | | |
2563 | 2606 | | |
2564 | 2607 | | |
| |||
2737 | 2780 | | |
2738 | 2781 | | |
2739 | 2782 | | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
2740 | 2788 | | |
2741 | 2789 | | |
2742 | 2790 | | |
| |||
3497 | 3545 | | |
3498 | 3546 | | |
3499 | 3547 | | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
3500 | 3572 | | |
3501 | 3573 | | |
3502 | 3574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
678 | 681 | | |
679 | 682 | | |
680 | 683 | | |
| |||
0 commit comments