virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@mellanox.com>
Cc: "perezma@redhat.com" <perezma@redhat.com>,
	"virtualization@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	Eugenio Perez Martin <eperezma@redhat.com>,
	Eli Cohen <elic@nvidia.com>
Subject: Re: [PATCH 1/2] vdpa/mlx5: Make VIRTIO_NET_F_MRG_RXBUF off by default
Date: Tue, 14 Mar 2023 00:33:06 -0400	[thread overview]
Message-ID: <20230314002939-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB54816DE6E7A0594D38019305DCBE9@PH0PR12MB5481.namprd12.prod.outlook.com>

On Tue, Mar 14, 2023 at 03:47:43AM +0000, Parav Pandit wrote:
> 
> > From: Michael S. Tsirkin <mst@redhat.com>
> > Sent: Monday, March 13, 2023 11:38 PM
> > 
> > On Tue, Mar 14, 2023 at 02:05:50AM +0000, Parav Pandit wrote:
> > >
> > > > From: Si-Wei Liu <si-wei.liu@oracle.com>
> > > > Sent: Monday, March 13, 2023 6:19 PM
> > >
> > > > Actually there's no such burden or requirement to maintain backward
> > > > compatibility for the default 'vdpa dev add' behavior if dedicated
> > > > device_features is not specified. Historically the default vdpa
> > > > creation on mlx5 ever got changed from single queue to 8 queue pairs
> > > > when VIRTIO_NET_F_MQ feature was first introduced to mlx5_vdpa, then
> > > > the default switched back to 1 data queue pair again when max_vqp
> > attribute was added to the vdpa tool.
> > > > Essentially, every addition of new feature to mlx5_vdpa, e.g.
> > > > CTRL_VQ, CTRL_VLAN, and et al, effectively changed the default "vdpa
> > > > dev add" behavior not just only once: the backward compatibility
> > > > guarantee is simply just not there and ever.
> > > This requires that every change in the device attributes will change the
> > behavior for vdpa dev add.
> > > The OR operation of the user supplied feature bits with device defaults
> > feature bit doesn’t look good to me.
> > > It brings uncertain behavior.
> > >
> > > The right behavior should be, if user supplied the feature bits, it should
> > supply all desired bits.
> > 
> > I think u mean all that device also supports.
> >
> If user supplied feature bits and device doesn’t support some of the feature bits -> add command fails.
> If user supplied feature bits, than use only the feature bits. Do not OR user supplied feature bits with device supported feature bits.
> For example,
> User asked to set,
> F_CONFIG_MTU
> F_CONFIG_MAC
> F_PACKED
> In that device should only use above 3 features. (because user is the master).
> 
> It should not OR user supplied feature bits with device defaults feature bits.
>  
> > > If user doesn’t supply feature bits, use the device defaults.
> 
> If user doesn’t supply any feature fits, that means user wants to run with some device defaults.
> In that case its fine to run with device defaults.

But this is not what this patch does?

> > > But not to mix both feature bits.
> > 
> > Can't say I understand what this means. What does "both" mean here?
> 
> Mix Both means, to perform OR operation on user supplied feature bits with device defaults.

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

  parent reply	other threads:[~2023-03-14  4:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230312083920.2300028-1-elic@nvidia.com>
     [not found] ` <20230312083920.2300028-2-elic@nvidia.com>
2023-03-12  8:58   ` [PATCH 1/2] vdpa/mlx5: Make VIRTIO_NET_F_MRG_RXBUF off by default Michael S. Tsirkin
     [not found]     ` <f01c7204-5629-297e-47b6-06e58bd3f543@nvidia.com>
2023-03-12 10:25       ` Michael S. Tsirkin
     [not found]         ` <PH0PR12MB54816C24BAA322567BED21A0DCB89@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-12 16:24           ` Michael S. Tsirkin
     [not found]             ` <PH0PR12MB548140734E1A0A8A2FD2CE30DCB99@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-13 21:23               ` Michael S. Tsirkin
2023-03-13 21:36                 ` Si-Wei Liu
     [not found]                 ` <PH0PR12MB5481766116A2C074EDA7B3CCDCB99@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-13 21:44                   ` Michael S. Tsirkin
     [not found]                     ` <PH0PR12MB5481FBB83AF401E598448736DCBE9@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-14  3:43                       ` Michael S. Tsirkin
2023-03-13 22:19           ` Si-Wei Liu
     [not found]             ` <PH0PR12MB5481A0629C479A030C8A8EDEDCBE9@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-14  3:37               ` Michael S. Tsirkin
     [not found]                 ` <PH0PR12MB54816DE6E7A0594D38019305DCBE9@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-14  4:33                   ` Michael S. Tsirkin [this message]
2023-03-14 19:29                   ` Si-Wei Liu
     [not found]                     ` <PH0PR12MB5481F776D35247E6BF3F115EDCBF9@PH0PR12MB5481.namprd12.prod.outlook.com>
2023-03-15  6:56                       ` Si-Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230314002939-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=elic@nvidia.com \
    --cc=eperezma@redhat.com \
    --cc=parav@mellanox.com \
    --cc=perezma@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).