Skip to contentSkip to conversation

content: explicitly document the VLAN filtering as best-effort

PATCH Superseded Tiwei Bie 2 participants 2 messages Jul 19, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tiwei Bie

author
#0 lore raw

PATCH 1/1 content: explicitly document the VLAN filtering as best-effort

Similar to the MAC address based filtering, the VLAN filtering is also best-effort in implementations, but it's not quite clear in the spec. So document this behaviour explicitly to reflect the way implementations behave.

---
v1:
- Add "Fixes:" tag;

RFC link:
https://lists.oasis-open.org/archives/virtio-dev/201907/msg00035.html

 content.tex | 5 +++++
 1 file changed, 5 insertions(+)
content.tex +5 -0
index 8f0498e..783322b 100644
@@ -3530,6 +3530,11 @@ \subsubsection{Control Virtqueue}\label{sec:Device Types / Network Device / Devi
 If the driver negotiates the VIRTION_NET_F_CTRL_VLAN feature, it
 can control a VLAN filter table in the device.
 
+\begin{note}
+Similar to the MAC address based filtering, the VLAN filtering
+is also best-effort: unwanted packets could still arrive.
+\end{note}
+
 \begin{lstlisting}
 #define VIRTIO_NET_CTRL_VLAN       2
  #define VIRTIO_NET_CTRL_VLAN_ADD             0
Signature · 6 lines
2.17.1


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · On Fri, 19 Jul 2019 12:11:51 +0800 Tiwei Bie <[email protected]> wrote:

Similar to the MAC address based filtering, the VLAN filtering is also best-effort in implementations, but it's not quite clear in the spec. So document this behaviour explicitly to reflect the way implementations behave.

---
v1:
- Add "Fixes:" tag;

RFC link:
https://lists.oasis-open.org/archives/virtio-dev/201907/msg00035.html

 content.tex | 5 +++++
 1 file changed, 5 insertions(+)
content.tex +0 -0
index 8f0498e..783322b 100644
@@ -3530,6 +3530,11 @@ \subsubsection{Control Virtqueue}\label{sec:Device Types / Network Device / Devi
 If the driver negotiates the VIRTION_NET_F_CTRL_VLAN feature, it

content.tex \subsubsection{Control Virtqueue}\label{sec:Device Types / Network Device / Devi · line 3540

Quoted 10 lines
content.tex +5 -0
 can control a VLAN filter table in the device.
 
+\begin{note}
+Similar to the MAC address based filtering, the VLAN filtering
+is also best-effort: unwanted packets could still arrive.
+\end{note}
+
 \begin{lstlisting}
 #define VIRTIO_NET_CTRL_VLAN       2
  #define VIRTIO_NET_CTRL_VLAN_ADD             0

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]