svn commit: r293643 - head/usr.sbin/bhyve

Gleb Smirnoff glebius at FreeBSD.org
Sun Jan 10 20:10:35 UTC 2016


Author: glebius
Date: Sun Jan 10 20:10:34 2016
New Revision: 293643
URL: https://svnweb.freebsd.org/changeset/base/293643

Log:
  Fix bhyve(1) operation on vmnet devices, broken in r293459.

Modified:
  head/usr.sbin/bhyve/pci_virtio_net.c

Modified: head/usr.sbin/bhyve/pci_virtio_net.c
==============================================================================
--- head/usr.sbin/bhyve/pci_virtio_net.c	Sun Jan 10 18:11:23 2016	(r293642)
+++ head/usr.sbin/bhyve/pci_virtio_net.c	Sun Jan 10 20:10:34 2016	(r293643)
@@ -850,7 +850,8 @@ pci_vtnet_init(struct vmctx *ctx, struct
 
 		if (strncmp(devname, "vale", 4) == 0)
 			pci_vtnet_netmap_setup(sc, devname);
-		if (strncmp(devname, "tap", 3) == 0)
+		if (strncmp(devname, "tap", 3) == 0 ||
+		    strncmp(devname, "vmnet", 5) == 0)
 			pci_vtnet_tap_setup(sc, devname);
 
 		free(devname);


More information about the svn-src-head mailing list