From f4c68172f3b2828addbb88ac963fa0fb50ebd5d2 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 17 Jun 2014 19:46:14 +0000 Subject: Add a configurable workaround for a bug in qemu < 2.0 that prevented VLANs from working. --- share/man/man4/vio.4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'share/man') diff --git a/share/man/man4/vio.4 b/share/man/man4/vio.4 index a1c14d7aaa6..a4135d5fb92 100644 --- a/share/man/man4/vio.4 +++ b/share/man/man4/vio.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vio.4,v 1.10 2014/05/09 14:44:56 sf Exp $ +.\" $OpenBSD: vio.4,v 1.11 2014/06/17 19:46:13 sf Exp $ .\" .\" Copyright (c) 2012 Stefan Fritsch .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 9 2014 $ +.Dd $Mdocdate: June 17 2014 $ .Dt VIO 4 .Os .Sh NAME @@ -29,10 +29,15 @@ driver provides support for the .Xr virtio 4 network interface provided by bhyve, KVM, QEMU, and VirtualBox. .Pp -Setting flags to 0x02 disables the RingEventIndex feature. +Setting the bit 0x2 in the flags disables the RingEventIndex feature. This can be tried as a workaround for possible bugs in host implementations or .Nm at the cost of slightly reduced performance. +.Pp +Setting the bit 0x100 in the flags forces the interface to be always in +promiscous mode. +This can be used as a workaround for a bug in QEMU before version 2.0 that +prevents packets with a VLAN tag to be sent to the guest. .Sh SEE ALSO .Xr intro 4 , .Xr virtio 4 @@ -54,8 +59,3 @@ It is based on the .Nm vioif driver by .An Minoura Makoto . -.Sh BUGS -Due to a qemu bug, VLANs don't work with qemu versions before 2.0 unless the -interface is in promiscuous mode. -.Nm -should probably implement a workaround for this. -- cgit v1.2.3