Re: [PATCH] vdpa/mlx5: Enlarge queue size to 512 entries

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

 



On Tue, Feb 22, 2022 at 3:00 AM Eugenio Perez Martin
<eperezma@xxxxxxxxxx> wrote:
>
> On Mon, Feb 21, 2022 at 2:20 PM Eli Cohen <elic@xxxxxxxxxx> wrote:
> >
> > Currently we can work with 512 entries with any MTU size. Change
> > MLX5_VDPA_MAX_VQ_ENTRIES accordingly.
> >
> > Signed-off-by: Eli Cohen <elic@xxxxxxxxxx>
> > ---
> >  drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c
> > index be095dc1134e..de115e3fe761 100644
> > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c
> > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c
> > @@ -2062,7 +2062,7 @@ static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callba
> >         ndev->config_cb = *cb;
> >  }
> >
> > -#define MLX5_VDPA_MAX_VQ_ENTRIES 256
> > +#define MLX5_VDPA_MAX_VQ_ENTRIES 512

I'd expect this should be something that can be read from the fw or
hw? Otherwise we can't increase it in the future.

Thanks

> >  static u16 mlx5_vdpa_get_vq_num_max(struct vdpa_device *vdev)
> >  {
> >         return MLX5_VDPA_MAX_VQ_ENTRIES;
> > --
> > 2.35.1
> >
>
> Acked-by: Eugenio Pérez <eperezma@xxxxxxxxxx>
>

_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization




[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux