OSDN Git Service

virtio-net: Do not filter VLANs without F_CTRL_VLAN
authorStefan Fritsch <sf@sfritsch.de>
Wed, 26 Mar 2014 10:29:52 +0000 (18:29 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 26 Mar 2014 10:48:21 +0000 (12:48 +0200)
commit0b1eaa8803e680de9a05727355dfe3d306b81e17
tree672bb5c5cf256056f85b278b7ba3751c4ea12616
parent53a786acac7b4d53288d603504021d928f734513
virtio-net: Do not filter VLANs without F_CTRL_VLAN

If VIRTIO_NET_F_CTRL_VLAN is not negotiated, do not filter out all
VLAN-tagged packets but send them to the guest.

This fixes VLANs with OpenBSD guests (and probably NetBSD, too, because
the OpenBSD driver started as a port from NetBSD).

Signed-off-by: Stefan Fritsch <sf@sfritsch.de>
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>
hw/net/virtio-net.c