diff options
author | Shay Drory <shayd@nvidia.com> | 2021-03-14 13:54:18 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-03-23 21:00:14 +0100 |
commit | ad50294d4d6b573654cddf09a689592414b28b45 (patch) | |
tree | 98e50b34df225914b6c9d9a69eae89cacd405997 /include | |
parent | RDMA/hns: Fix memory corruption when allocating XRCDN (diff) | |
download | linux-ad50294d4d6b573654cddf09a689592414b28b45.tar.xz linux-ad50294d4d6b573654cddf09a689592414b28b45.zip |
RDMA/mlx5: Create ODP EQ only when ODP MR is created
There is no need to create the ODP EQ if the user doesn't use ODP MRs.
Hence, create it only when the first ODP MR is created. This EQ will be
destroyed only when the device is unloaded.
This will decrease the number of EQs created per device. for example: If
we creates 1K devices (SF/VF/etc'), than we will decrease the num of EQs
by 1K.
Link: https://lore.kernel.org/r/20210314125418.179716-1-leon@kernel.org
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions