All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: "virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	"cohuck@redhat.com" <cohuck@redhat.com>,
	"sburla@marvell.com" <sburla@marvell.com>,
	Shahaf Shuler <shahafs@nvidia.com>,
	"si-wei.liu@oracle.com" <si-wei.liu@oracle.com>,
	"xuanzhuo@linux.alibaba.com" <xuanzhuo@linux.alibaba.com>,
	Heng Qi <hengqi@linux.alibaba.com>
Subject: [virtio-comment] Re: [PATCH v7 2/5] virtio-net: Add flow filter capabilities read commands
Date: Mon, 27 Nov 2023 07:33:25 -0500	[thread overview]
Message-ID: <20231127073045-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB5481FD7F68E535A99F51D36ADCBDA@PH0PR12MB5481.namprd12.prod.outlook.com>

On Mon, Nov 27, 2023 at 11:50:24AM +0000, Parav Pandit wrote:
> 
> > From: Michael S. Tsirkin <mst@redhat.com>
> > Sent: Monday, November 27, 2023 5:10 PM
> > 
> > On Mon, Nov 27, 2023 at 11:33:45AM +0000, Parav Pandit wrote:
> > >
> > > > From: Michael S. Tsirkin <mst@redhat.com>
> > > > Sent: Monday, November 27, 2023 4:53 PM
> > > >
> > > > On Mon, Nov 27, 2023 at 10:19:47AM +0000, Parav Pandit wrote:
> > > > > > > > It appears that's not what you meant.
> > > > > > > > I can try and guess what you meant but I'd rather have you
> > > > > > > > rewrite this in a way that makes the meaning explicit.
> > > > > > > >
> > > > > > > If you insist, I can duplicate in driver requirements too.
> > > > > > > >
> > > > > > > > > There are many capabilities here each with a different use.
> > > > > > > >
> > > > > > > > And you are under the impression that dumping all kind of
> > > > > > > > stuff in a single place is good somehow?
> > > > > > > It is not dumped.
> > > > > > > It is structured based on the functionality.
> > > > > > > The config space proposal tends to dump everything in
> > > > > > > unstructured way at
> > > > > > single place that cannot extended elegantly.
> > > > > > >
> > > > > > > For example, Xuan's dynamic array cannot be placed next to
> > > > > > > other dynamic
> > > > > > array of flow filter.
> > > > > >
> > > > > > I don't know what "dynamic array" is exactly but generally, Any
> > > > > > kind of a big array is not appropriate in config space - I don't
> > > > > > see any of these
> > > > here, though.
> > > > > Ah, now I see the disconnect.
> > > > >
> > > > > There is.
> > > > > struct virtio_net_ctrl_ff_match_types
> > > >
> > > > Now I think I don't understand what this array does at all.
> > > > Why are there multiple entries with each entry also including a mask
> > > > of multiple fields?
> > > >
> > > Each entry indicates a bitmask of supported fields that can be filtered.
> > > The type indicates how to interpret each fields_map.
> > > Any new type for MPLS can be added easily by defining its type and mask.
> > > And same type enums and field mask also used by the data path too.
> > 
> > Oh wait I think I begin to remember now. There are 12 bits defined so far and
> > you made it this huge array. Right? With code to parse and format it all. Just
> > add a 64 bit field and it will last us long enough. No parsing and formatting just
> > #define.
> The infrastructure defines 12 bits only because this is first minimal viable work.
> There will be more fields to be added for more types.

Maybe.  Let's see a list and see if we even get close to 32 bits.

> It is not good to mix up all the fields and bit definitions.

Not good how?  It's definitely much simpler than what you wrote.
Does it matter that bits for a given transport are not all
consequitive? I do not see why it matters.


> And there are per device max limits which is way more than 12 bits.

These are just a couple of 32 bit fields.

-- 
MST


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


  reply	other threads:[~2023-11-27 12:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23  9:21 [virtio-comment] [PATCH v7 0/5] virtio-net: Support flow filter for receive packets Parav Pandit
2023-11-23  9:21 ` [virtio-comment] [PATCH v7 1/5] virtio-net: Add theory of operation for flow filter Parav Pandit
2023-11-23  9:21 ` [virtio-comment] [PATCH v7 2/5] virtio-net: Add flow filter capabilities read commands Parav Pandit
2023-11-23 14:13   ` [virtio-comment] " Michael S. Tsirkin
2023-11-23 18:40     ` [virtio-comment] " Parav Pandit
2023-11-23 22:57       ` [virtio-comment] " Michael S. Tsirkin
2023-11-24  2:57         ` [virtio-comment] " Parav Pandit
2023-11-24  5:59           ` [virtio-comment] " Michael S. Tsirkin
2023-11-24  6:27             ` [virtio-comment] " Parav Pandit
2023-11-24 10:14               ` [virtio-comment] " Michael S. Tsirkin
2023-11-27 10:19                 ` [virtio-comment] " Parav Pandit
2023-11-27 11:22                   ` [virtio-comment] " Michael S. Tsirkin
2023-11-27 11:33                     ` [virtio-comment] " Parav Pandit
2023-11-27 11:40                       ` [virtio-comment] " Michael S. Tsirkin
2023-11-27 11:50                         ` [virtio-comment] " Parav Pandit
2023-11-27 12:33                           ` Michael S. Tsirkin [this message]
2023-11-27 12:49                             ` Parav Pandit
2023-11-27 13:00                               ` [virtio-comment] " Michael S. Tsirkin
2023-11-23  9:21 ` [virtio-comment] [PATCH v7 3/5] virtio-net: Add flow filter group life cycle commands Parav Pandit
2023-11-23  9:21 ` [virtio-comment] [PATCH v7 4/5] virtio-net: Add flow filter match entry, action and requests Parav Pandit
2023-11-23  9:21 ` [virtio-comment] [PATCH v7 5/5] virtio-net: Add flow filter device and driver requirements Parav Pandit

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=20231127073045-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=hengqi@linux.alibaba.com \
    --cc=parav@nvidia.com \
    --cc=sburla@marvell.com \
    --cc=shahafs@nvidia.com \
    --cc=si-wei.liu@oracle.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=xuanzhuo@linux.alibaba.com \
    /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 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.