common/mlx5: share MR top-half search function