OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [virtio-comment] [PATCH] Make global flag names consistent


Hi Cornelia,

Could you please comment on this patch - is this what you were expecting?

Thanks,

Joel

On 2021-05-04 11:21 a.m., Joel Nider wrote:
The global flags VIRTIO_F_EVENT_IDX and VIRTIO_F_INDIRECT_DESC
have inconsistent naming throughout the document. This change
removes the _RING designation from the flag names to make the
usage consistent.

Signed-off-by: Joel Nider <joel@nider.org>
---
  content.tex     | 4 ++--
  packed-ring.tex | 4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/content.tex b/content.tex
index 9232d5c..c869cf4 100644
--- a/content.tex
+++ b/content.tex
@@ -6574,14 +6574,14 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits}
  Currently these device-independent feature bits defined:
\begin{description}
-  \item[VIRTIO_F_RING_INDIRECT_DESC (28)] Negotiating this feature indicates
+  \item[VIRTIO_F_INDIRECT_DESC (28)] Negotiating this feature indicates
    that the driver can use descriptors with the VIRTQ_DESC_F_INDIRECT
    flag set, as described in \ref{sec:Basic Facilities of a Virtio
  Device / Virtqueues / The Virtqueue Descriptor Table / Indirect
  Descriptors}~\nameref{sec:Basic Facilities of a Virtio Device /
  Virtqueues / The Virtqueue Descriptor Table / Indirect
  Descriptors} and \ref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}~\nameref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}.
-  \item[VIRTIO_F_RING_EVENT_IDX(29)] This feature enables the \field{used_event}
+  \item[VIRTIO_F_EVENT_IDX(29)] This feature enables the \field{used_event}
    and the \field{avail_event} fields as described in
  \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression}, \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} and \ref{sec:Packed Virtqueues / Driver and Device Event Suppression}.
diff --git a/packed-ring.tex b/packed-ring.tex
index ea92543..a9e6c16 100644
--- a/packed-ring.tex
+++ b/packed-ring.tex
@@ -336,7 +336,7 @@ \subsection{Driver and Device Event Suppression}
  /*
   * Enable events for a specific descriptor
   * (as specified by Descriptor Ring Change Event Offset/Wrap Counter).
- * Only valid if VIRTIO_F_RING_EVENT_IDX has been negotiated.
+ * Only valid if VIRTIO_F_EVENT_IDX has been negotiated.
   */
  #define RING_EVENT_FLAGS_DESC 0x2
  /* The value 0x3 is reserved */
@@ -597,7 +597,7 @@ \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De
Below is a driver code example. It does not attempt to reduce
  the number of available buffer notifications, neither does it support
-the VIRTIO_F_RING_EVENT_IDX feature.
+the VIRTIO_F_EVENT_IDX feature.
\begin{lstlisting}
  /* Note: vq->avail_wrap_count is initialized to 1 */


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]