On 09/11/2022 20:11, Jason Gunthorpe wrote:
On Sun, Nov 06, 2022 at 07:46:23PM +0200, Yishai Hadas wrote:
@@ -1047,7 +1045,7 @@ static int mlx5vf_alloc_qp_recv_resources(struct mlx5_core_dev *mdev,
if (err)
goto end;
- err = _create_mkey(mdev, pdn, NULL, recv_buf, &recv_buf->mkey);
+ err = _create_mkey(mdev, pdn, NULL, recv_buf, &recv_buf->mkey, 0);
This seems pretty goofy, a 0 length means use the length in the
recv_buf?
Right
In V1 will embed here the expected length (i.e. npages * PAGE_SIZE) and
use it directly as part of _create_mkey().
Yishai