* [virtio-dev] [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit
@ 2023-02-20 9:35 Alvaro Karsz
2023-02-20 9:40 ` [virtio-dev] " Alvaro Karsz
0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Karsz @ 2023-02-20 9:35 UTC (permalink / raw)
To: virtio-comment, virtio-dev; +Cc: jasowang, mst, hengqi, parav, Alvaro Karsz
The VIRTIO_NET_F_CTRL_RX_EXTRA feature bit is mentioned in the spec
since version 1.0, but it's not properly defined.
This patch defined the feature bit and defined the dependency on VIRTIO_NET_F_CTRL_VQ.
Since this dependency was missed in previous versions, we add it now as
a "SHOULD".
Fixes: https://github.com/oasis-tcs/virtio-spec/issues/162
Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
---
device-types/net/description.tex | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/device-types/net/description.tex b/device-types/net/description.tex
index 8487ccd..cf37da5 100644
--- a/device-types/net/description.tex
+++ b/device-types/net/description.tex
@@ -74,6 +74,8 @@ \subsection{Feature bits}\label{sec:Device Types / Network Device / Feature bits
\item[VIRTIO_NET_F_CTRL_VLAN (19)] Control channel VLAN filtering.
+\item[VIRTIO_NET_F_CTRL_RX_EXTRA (20)] Control channel RX extra mode support.
+
\item[VIRTIO_NET_F_GUEST_ANNOUNCE(21)] Driver can send gratuitous
packets.
@@ -259,6 +261,9 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device
The device SHOULD NOT offer VIRTIO_NET_F_HASH_REPORT if it
does not offer VIRTIO_NET_F_CTRL_VQ.
+The device SHOULD NOT offer VIRTIO_NET_F_CTRL_RX_EXTRA if it
+does not offer VIRTIO_NET_F_CTRL_VQ.
+
\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.
@@ -295,6 +300,9 @@ \subsection{Device configuration layout}\label{sec:Device Types / Network Device
A driver SHOULD NOT negotiate VIRTIO_NET_F_HASH_REPORT if it
does not negotiate VIRTIO_NET_F_CTRL_VQ.
+A driver SHOULD NOT negotiate VIRTIO_NET_F_CTRL_RX_EXTRA if it
+does not negotiate VIRTIO_NET_F_CTRL_VQ.
+
\subsubsection{Legacy Interface: Device configuration layout}\label{sec:Device Types / Network Device / Device configuration layout / Legacy Interface: Device configuration layout}
\label{sec:Device Types / Block Device / Feature bits / Device configuration layout / Legacy Interface: Device configuration layout}
When using the legacy interface, transitional devices and drivers
--
2.34.1
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [virtio-dev] Re: [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit
2023-02-20 9:35 [virtio-dev] [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit Alvaro Karsz
@ 2023-02-20 9:40 ` Alvaro Karsz
2023-02-20 10:25 ` Cornelia Huck
0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Karsz @ 2023-02-20 9:40 UTC (permalink / raw)
To: mst
Cc: jasowang, virtio-comment, hengqi, parav,
virtio-dev @ lists . oasis-open . org
I didn't add the control vq feature as a feature bit requirement for
the same reason as [1].
If you think that we can add a feature bit requirement instead of
"SHOULD NOT offer" and "SHOULD NOT negotiate", I can add it in v2.
[1] https://github.com/oasis-tcs/virtio-spec/issues/158
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [virtio-dev] Re: [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit
2023-02-20 9:40 ` [virtio-dev] " Alvaro Karsz
@ 2023-02-20 10:25 ` Cornelia Huck
2023-02-20 11:15 ` Alvaro Karsz
0 siblings, 1 reply; 4+ messages in thread
From: Cornelia Huck @ 2023-02-20 10:25 UTC (permalink / raw)
To: Alvaro Karsz, mst
Cc: jasowang, virtio-comment, hengqi, parav,
virtio-dev @ lists . oasis-open . org
On Mon, Feb 20 2023, Alvaro Karsz <alvaro.karsz@solid-run.com> wrote:
> I didn't add the control vq feature as a feature bit requirement for
> the same reason as [1].
>
> If you think that we can add a feature bit requirement instead of
> "SHOULD NOT offer" and "SHOULD NOT negotiate", I can add it in v2.
>
> [1] https://github.com/oasis-tcs/virtio-spec/issues/158
I agree that we need to stick with SHOULD here.
Are VIRTIO_NET_F_CTRL_RX_EXTRA and VIRTIO_NET_F_CTRL_RX independent of
each other, i.e. can you negotiate VIRTIO_NET_F_CTRL_RX_EXTRA but not
VIRTIO_NET_F_CTRL_RX? Looks like it to me, but would like to confirm.
(We would at most be able to add a SHOULD statement anyway.)
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [virtio-dev] Re: [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit
2023-02-20 10:25 ` Cornelia Huck
@ 2023-02-20 11:15 ` Alvaro Karsz
0 siblings, 0 replies; 4+ messages in thread
From: Alvaro Karsz @ 2023-02-20 11:15 UTC (permalink / raw)
To: Cornelia Huck
Cc: mst, jasowang, virtio-comment, hengqi, parav,
virtio-dev @ lists . oasis-open . org
Hi,
> I agree that we need to stick with SHOULD here.
>
> Are VIRTIO_NET_F_CTRL_RX_EXTRA and VIRTIO_NET_F_CTRL_RX independent of
> each other, i.e. can you negotiate VIRTIO_NET_F_CTRL_RX_EXTRA but not
> VIRTIO_NET_F_CTRL_RX? Looks like it to me, but would like to confirm.
> (We would at most be able to add a SHOULD statement anyway.)
>
It seems to me that the features can work independently.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-20 11:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-20 9:35 [virtio-dev] [PATCH] virtio-net: define the VIRTIO_NET_F_CTRL_RX_EXTRA feature bit Alvaro Karsz
2023-02-20 9:40 ` [virtio-dev] " Alvaro Karsz
2023-02-20 10:25 ` Cornelia Huck
2023-02-20 11:15 ` Alvaro Karsz
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.