From 6aecd69eb90bb1feb0c8badf6af7065e55b7a2e7 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Wed, 31 Jul 2019 09:34:46 +0800 Subject: 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. Signed-off-by: Tiwei Bie Acked-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin Fixes: https://github.com/oasis-tcs/virtio-spec/issues/47 --- content.tex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content.tex b/content.tex index 24a8927..37a2190 100644 --- a/content.tex +++ b/content.tex @@ -3609,6 +3609,11 @@ of \field{mac} in the config space. If the driver negotiates the VIRTIO_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 -- cgit