Skip to content

Commit edc3a49

Browse files
Nikhil Krishnajfvogel
authored andcommitted
RDMA/mlx5: Set MR cache limit for both PF and VF
MR cache limit is used for PF but not set for VF causing better latency on the PF. Issue is also in upstream and not limited to UEK. This change is not upstream and Mellanox cannot commit at this time it will be accepted upstream. Orabug: 31358080 Signed-off-by: Nikhil Krishna <[email protected]> Tested-by: Ria Mirchandani <[email protected]> Signed-off-by: Qing Huang <[email protected]> Reviewed-by: Håkon Bugge <[email protected]>
1 parent 37fef55 commit edc3a49

File tree

1 file changed

+4
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+4
-0
lines changed

drivers/infiniband/hw/mlx5/mr.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,16 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
643643
ent->xlt = (1 << ent->order) * sizeof(struct mlx5_mtt) /
644644
MLX5_IB_UMR_OCTOWORD;
645645
ent->access_mode = MLX5_MKC_ACCESS_MODE_MTT;
646+
#ifdef WITHOUT_ORACLE_EXTENSIONS
646647
if ((dev->mdev->profile->mask & MLX5_PROF_MASK_MR_CACHE) &&
647648
!dev->is_rep &&
648649
mlx5_core_is_pf(dev->mdev))
649650
ent->limit = dev->mdev->profile->mr_cache[i].limit;
650651
else
651652
ent->limit = 0;
653+
#else
654+
ent->limit = dev->mdev->profile->mr_cache[i].limit;
655+
#endif /* WITHOUT_ORACLE_EXTENSIONS */
652656
queue_work(cache->wq, &ent->work);
653657
}
654658

0 commit comments

Comments
 (0)