]> Git Repo - qemu.git/commit - qapi-schema.json
virtio-net: add vlan receive state to RxFilterInfo
authorAmos Kong <[email protected]>
Wed, 26 Mar 2014 00:19:43 +0000 (08:19 +0800)
committerMichael S. Tsirkin <[email protected]>
Wed, 26 Mar 2014 10:49:10 +0000 (12:49 +0200)
commitf7bc8ef8091229a4bec0e2a40af90abb8dcb3834
tree1eb8d12c04745ed5dc826f5ab78a06392a9d5405
parent0b1eaa8803e680de9a05727355dfe3d306b81e17
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 <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
hw/net/virtio-net.c
qapi-schema.json
qmp-commands.hx
This page took 0.026141 seconds and 4 git commands to generate.