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: [PATCH v8 09/13] virtio-net: Add flow filter group resource


A flow filter group resource holds the flow filter rules.
The device can have one or more flow filter groups. Each flow filter
group has its own priority. The group priority defines the packet
processing order in the flow filter domain.

Add resource definition for flow filter group.

Fixes: https://github.com/oasis-tcs/virtio-spec/issues/179
Signed-off-by: Heng Qi <hengqi@linux.alibaba.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>

---
changelog:
v6->v7:
- addressed comments from Cornelia
- reworded the description for group delete command
- rebased the series on top of generic resource framework
---
 device-types/net/description.tex | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/device-types/net/description.tex b/device-types/net/description.tex
index efe363b..05979e7 100644
--- a/device-types/net/description.tex
+++ b/device-types/net/description.tex
@@ -472,14 +472,33 @@ \subsubsection{Flow Filter Match Capabilities}\label{sec:Device Types / Network
 is supported or not.
 
 \field{num_types} indicates the length of the array \field{types}.
-Each array entry of \field{types} represents the fields of the packet
-which are supported for matching by the device.
-
 Each array entry of \field{types} represents packet match fields.
 
 For each \field{type} the \field{fields_bmap} indicates supported fields
 of the packet header which can be matched.
 
+\subsection{Device Resources}\label{sec:Device Types / Network Device / Device Resources}
+
+\begin{tabularx}{\textwidth}{ |l||l|X| }
+\hline
+type & Name & Description \\
+\hline \hline
+0x0200 & VIRTIO_NET_RESOURCE_FF_GROUP & Flow filter group \\
+\hline
+\end{tabularx}
+
+\subsubsection{Flow Filter Group}\label{sec:Device Types / Network Device / Device Resources / Flow Filter Group}
+
+For the device resource VIRTIO_NET_RESOURCE_FF_GROUP, the
+\field{resource_specific_data} is in the format of
+\field{struct virtio_net_resource_ff_group}.
+
+\begin{lstlisting}
+struct virtio_net_resource_ff_group {
+        le16 priority;	/* higher priority groups are processed first */
+};
+\end{lstlisting}
+
 \subsection{Device Operation}\label{sec:Device Types / Network Device / Device Operation}
 
 Packets are transmitted by placing them in the
-- 
2.34.1



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