All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: Alvaro Karsz <alvaro.karsz@solid-run.com>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>,
	"jasowang@redhat.com" <jasowang@redhat.com>
Subject: Re: [virtio-comment] RE: [virtio-dev] [PATCH v3] virtio-net: Mention VIRTIO_NET_F_HASH_REPORT dependency on VIRTIO_NET_F_CTRL_VQ
Date: Tue, 7 Feb 2023 09:12:26 -0500	[thread overview]
Message-ID: <20230207090647-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB5481B6E2510FB242B76BBB30DCDA9@PH0PR12MB5481.namprd12.prod.outlook.com>

On Mon, Feb 06, 2023 at 10:02:39PM +0000, Parav Pandit wrote:
> 
> 
> > From: virtio-dev@lists.oasis-open.org <virtio-dev@lists.oasis-open.org> On
> > Behalf Of Alvaro Karsz
> > ---
> > v2: Use SHOULD instead of Feature bit requirement, version 1.2 is already
> >     out and doesn't include this depencency.
> > 
> > v3: Explain the dependency in a less confusing way.
> > 
> > Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
> > 
> >  device-types/net/description.tex | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/device-types/net/description.tex b/device-types/net/description.tex
> > index 700a1cb..1741c79 100644
> > --- a/device-types/net/description.tex
> > +++ b/device-types/net/description.tex
> > @@ -256,6 +256,9 @@ \subsection{Device configuration
> > layout}\label{sec:Device Types / Network Device  \field{duplex} fields as long as
> > VIRTIO_NET_S_LINK_UP is set in  the \field{status}.
> > 
> > +The device SHOULD NOT offer VIRTIO_NET_F_HASH_REPORT if it does not
> > +offer VIRTIO_NET_F_CTRL_VQ.
> > +
> I believe this applies to all the configurations done through the control VQ.
> So we should write a generic description instead of per feature statement like above.


I think we mostly have dependencies listed already. Dependencies
are a MUST though. It's a pity we forgot this one but oh well.
*Maybe* we want a section of a kind of "weak dependencies" for
cases like this where it's a SHOULD not a MUST.


> >  \drivernormative{\subsubsection}{Device configuration layout}{Device Types /
> > Network Device / Device configuration layout}
> > 
> >  A driver SHOULD negotiate VIRTIO_NET_F_MAC if the device offers it.
> > @@ -289,6 +292,9 @@ \subsection{Device configuration
> > layout}\label{sec:Device Types / Network Device  SHOULD re-read \field{speed}
> > and \field{duplex} after a  configuration change notification.
> > 
> > +A driver SHOULD NOT negotiate VIRTIO_NET_F_HASH_REPORT if it does not
> > +negotiate VIRTIO_NET_F_CTRL_VQ.
> > +
> Same for the driver too.
> Like below.
> The driver should not negotiate a feature that requires to use a control VQ when VIRTIO_NET_F_CTRL_VQ is not negotiated.
> Or driver must not .. ..
> Exception to that is VIRTIO_NET_F_HASH_REPORT, which driver should avoid negotiation ...

That's a vague enough not to be useful. VIRTIO_NET_F_HASH_REPORT
is not 100% through a queue, there's a list of supported hashes
that can be checked through config space.  Of limited usefulness
but still, e.g. you can know what's supported e.g. for management
purposes.



-- 
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/


  parent reply	other threads:[~2023-02-07 14:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06  8:02 [virtio-dev] [PATCH v3] virtio-net: Mention VIRTIO_NET_F_HASH_REPORT dependency on VIRTIO_NET_F_CTRL_VQ Alvaro Karsz
2023-02-06 22:02 ` [virtio-comment] " Parav Pandit
2023-02-07  7:54   ` Alvaro Karsz
2023-02-07 14:12   ` Michael S. Tsirkin [this message]
2023-02-08 10:42     ` [virtio-dev] Re: [virtio-comment] " Alvaro Karsz
2023-02-10 11:38 ` Alvaro Karsz
2023-02-10 18:42   ` [virtio-dev] " Parav Pandit
2023-02-11  9:12     ` Alvaro Karsz
2023-02-11 14:03       ` Parav Pandit
2023-02-12  9:38         ` Michael S. Tsirkin
2023-02-14  0:50           ` [virtio-comment] " Parav Pandit
2023-02-20 14:21 ` [virtio-dev] " Cornelia Huck
2023-02-20 14:25   ` Alvaro Karsz

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=20230207090647-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=alvaro.karsz@solid-run.com \
    --cc=jasowang@redhat.com \
    --cc=parav@nvidia.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=virtio-dev@lists.oasis-open.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 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.