diff options
| author | Jianbo Liu <[email protected]> | 2024-06-03 13:26:39 +0300 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-06-16 18:37:57 +0300 |
| commit | 5895e70f2e6e8dc67b551ca554d6fcde0a7f0467 (patch) | |
| tree | f529b4c640003b6cde3bac73eb66d559c6680bab /tools/perf/scripts/python | |
| parent | 638420115cc4ad6c3a2683bf46a052b505abb202 (diff) | |
IB/mlx5: Allocate resources just before first QP/SRQ is created
Previously, all IB dev resources are initialized on driver load. As
they are not always used, move the initialization to the time when
they are needed.
To be more specific, move PD (p0) and CQ (c0) initialization to the
time when the first SRQ is created. and move SRQs(s0 and s1)
initialization to the time first QP is created. To avoid concurrent
creations, two new mutexes are also added.
Signed-off-by: Jianbo Liu <[email protected]>
Link: https://lore.kernel.org/r/98c3e53a8cc0bdfeb6dec6e5bb8b037d78ab00d8.1717409369.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions