path: root/qapi-schema.json
diff options
authorAmos Kong <akong@redhat.com>2014-03-26 08:19:43 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-03-26 12:49:10 +0200
commitf7bc8ef8091229a4bec0e2a40af90abb8dcb3834 (patch)
tree1eb8d12c04745ed5dc826f5ab78a06392a9d5405 /qapi-schema.json
parent0b1eaa8803e680de9a05727355dfe3d306b81e17 (diff)
virtio-net: add vlan receive state to RxFilterInfo
Stefan Fritsch just fixed a virtio-net driver bug [1], virtio-net won't filter out VLAN-tagged packets if VIRTIO_NET_F_CTRL_VLAN isn't negotiated. This patch added a new field to @RxFilterInfo to indicate vlan receive state ('normal', 'none', 'all'). If VIRTIO_NET_F_CTRL_VLAN isn't negotiated, vlan receive state will be 'all', then all VLAN-tagged packets will be received by guest. This patch also fixed a boundary issue in visiting vlan table. [1] http://lists.nongnu.org/archive/html/qemu-devel/2014-02/msg02604.html Signed-off-by: Amos Kong <akong@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qapi-schema.json')
1 files changed, 3 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index b68cd44ebd..391356fe29 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4184,6 +4184,8 @@
# @unicast: unicast receive state
+# @vlan: vlan receive state (Since 2.0)
# @broadcast-allowed: whether to receive broadcast
# @multicast-overflow: multicast table is overflowed or not
@@ -4207,6 +4209,7 @@
'promiscuous': 'bool',
'multicast': 'RxState',
'unicast': 'RxState',
+ 'vlan': 'RxState',
'broadcast-allowed': 'bool',
'multicast-overflow': 'bool',
'unicast-overflow': 'bool',