Re: [PATCH vfio 06/13] vfio/mlx5: Refactor total_length name and usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux