All of lore.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <20211213144258.179984-6-elic@nvidia.com>]
  • [parent not found: <20211213144258.179984-5-elic@nvidia.com>]
  • * Re: [PATCH v2 00/10] Allow for configuring max number of virtqueue pairs
           [not found] <20211213144258.179984-1-elic@nvidia.com>
                       ` (2 preceding siblings ...)
           [not found] ` <20211213144258.179984-5-elic@nvidia.com>
    @ 2021-12-14  3:17 ` Jason Wang
      2021-12-14  4:11   ` Parav Pandit via Virtualization
                         ` (2 more replies)
           [not found] ` <20211213144258.179984-2-elic@nvidia.com>
                       ` (2 subsequent siblings)
      6 siblings, 3 replies; 19+ messages in thread
    From: Jason Wang @ 2021-12-14  3:17 UTC (permalink / raw)
      To: Eli Cohen; +Cc: Laurent Vivier, mst, virtualization, eperezma, Si-Wei Liu
    
    On Mon, Dec 13, 2021 at 10:43 PM Eli Cohen <elic@nvidia.com> wrote:
    >
    > Allow the user to configure the max number of virtqueue pairs for a vdpa
    > instance. The user can then control the actual number of virtqueue pairs
    > using ethtool.
    >
    > Example, set number of VQPs to 2:
    > $ ethtool -L ens1 combined 2
    >
    > A user can check the max supported virtqueues for a management device by
    > runnig:
    >
    > vdpa dev show
    >     vdpa-a: type network mgmtdev auxiliary/mlx5_core.sf.1 vendor_id 5555 \
    >             max_vqp 3 max_vq_size 256 max_supported_vqs 256
    
    I think the maxsupported_vqs should be an odd number since it should
    contain control vq.
    
    >
    > and refer to this value when adding a device.
    >
    > To create a device with a max of 5 VQPs:
    > vdpa dev add name vdpa-a mgmtdev auxiliary/mlx5_core.sf.1 max_vqp 5
    
    A question, consider the parent support both net and block, if user use
    
    vdpa dev add name vdpa-a mgmtdev auxiliary/mlx5_core.sf.1
    
    How do we know it's a net or block device? Or do you expect some block
    specific attributes to be added?
    
    Thanks
    
    >
    > V1 -> V2:
    > 1. Do not return the index of the control VQ. Instead return an
    >    indication if Ctrl VQ was negotiated.
    > 2. Do not returen conig information if FEATURES_OK is not set to avoid
    >    reporting out of sync information.
    > 3. Minor fixes as described by the individual patches
    > 4. Add patches to return the max virtqueues a device is capable of
    >    supporting.
    >
    > Eli Cohen (10):
    >   vdpa: Provide interface to read driver features
    >   vdpa/mlx5: Distribute RX virtqueues in RQT object
    >   vdpa: Read device configuration only if FEATURES_OK
    >   vdpa: Allow to configure max data virtqueues
    >   vdpa/mlx5: Fix config_attr_mask assignment
    >   vdpa/mlx5: Support configuring max data virtqueue pairs
    >   vdpa: Add support for returning device configuration information
    >   vdpa/mlx5: Restore cur_num_vqs in case of failure in change_num_qps()
    >   vdpa: Support reporting max device virtqueues
    >   vdpa/mlx5: Configure max supported virtqueues
    >
    >  drivers/vdpa/alibaba/eni_vdpa.c    | 16 +++--
    >  drivers/vdpa/ifcvf/ifcvf_main.c    | 16 +++--
    >  drivers/vdpa/mlx5/net/mlx5_vnet.c  | 94 +++++++++++++++++-------------
    >  drivers/vdpa/vdpa.c                | 42 ++++++++++++-
    >  drivers/vdpa/vdpa_sim/vdpa_sim.c   | 21 +++++--
    >  drivers/vdpa/vdpa_user/vduse_dev.c | 16 +++--
    >  drivers/vdpa/virtio_pci/vp_vdpa.c  | 16 +++--
    >  drivers/vhost/vdpa.c               |  2 +-
    >  drivers/virtio/virtio_vdpa.c       |  2 +-
    >  include/linux/vdpa.h               | 16 +++--
    >  include/uapi/linux/vdpa.h          |  9 +++
    >  11 files changed, 178 insertions(+), 72 deletions(-)
    >
    > --
    > 2.33.1
    >
    
    _______________________________________________
    Virtualization mailing list
    Virtualization@lists.linux-foundation.org
    https://lists.linuxfoundation.org/mailman/listinfo/virtualization
    
    ^ permalink raw reply	[flat|nested] 19+ messages in thread
  • [parent not found: <20211213144258.179984-2-elic@nvidia.com>]
  • [parent not found: <20211213144258.179984-4-elic@nvidia.com>]
  • [parent not found: <20211213144258.179984-8-elic@nvidia.com>]

  • end of thread, other threads:[~2021-12-21  8:03 UTC | newest]
    
    Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <20211213144258.179984-1-elic@nvidia.com>
         [not found] ` <20211213144258.179984-10-elic@nvidia.com>
    2021-12-13 23:50   ` [PATCH v2 09/10] vdpa: Support reporting max device virtqueues Si-Wei Liu
    2021-12-14  1:00   ` Si-Wei Liu
         [not found]     ` <20211214082229.GE89087@mtl-vdi-166.wap.labs.mlnx>
    2021-12-16  2:56       ` Si-Wei Liu
         [not found]         ` <20211219120839.GA84946@mtl-vdi-166.wap.labs.mlnx>
    2021-12-21  8:02           ` Si-Wei Liu
         [not found] ` <20211213144258.179984-6-elic@nvidia.com>
    2021-12-13 23:51   ` [PATCH v2 05/10] vdpa/mlx5: Fix config_attr_mask assignment Si-Wei Liu
         [not found] ` <20211213144258.179984-5-elic@nvidia.com>
    2021-12-13 23:59   ` [PATCH v2 04/10] vdpa: Allow to configure max data virtqueues Si-Wei Liu
    2021-12-14  3:17 ` [PATCH v2 00/10] Allow for configuring max number of virtqueue pairs Jason Wang
    2021-12-14  4:11   ` Parav Pandit via Virtualization
    2021-12-14  6:16     ` Jason Wang
    2021-12-14  6:40       ` Parav Pandit via Virtualization
         [not found]   ` <20211214073141.GC89087@mtl-vdi-166.wap.labs.mlnx>
    2021-12-14  8:53     ` Jason Wang
    2021-12-14  9:42   ` Stefano Garzarella
         [not found]     ` <20211214095303.GA94217@mtl-vdi-166.wap.labs.mlnx>
    2021-12-14 11:12       ` Stefano Garzarella
         [not found] ` <20211213144258.179984-2-elic@nvidia.com>
    2021-12-14  3:37   ` [PATCH v2 01/10] vdpa: Provide interface to read driver features Jason Wang
         [not found] ` <20211213144258.179984-4-elic@nvidia.com>
    2021-12-14  3:44   ` [PATCH v2 03/10] vdpa: Read device configuration only if FEATURES_OK Jason Wang
         [not found]     ` <20211214071411.GA89087@mtl-vdi-166.wap.labs.mlnx>
    2021-12-14  8:53       ` Jason Wang
         [not found] ` <20211213144258.179984-8-elic@nvidia.com>
    2021-12-13 23:49   ` [PATCH v2 07/10] vdpa: Add support for returning device configuration information Si-Wei Liu
    2021-12-14  4:05   ` Jason Wang
         [not found]     ` <20211214071713.GB89087@mtl-vdi-166.wap.labs.mlnx>
    2021-12-14  8:56       ` Jason Wang
    

    This is an external index of several public inboxes,
    see mirroring instructions on how to clone and mirror
    all data and code used by this external index.