From 7ab2b8809cd93e9b6da4f2284f4a5851deeff012 Mon Sep 17 00:00:00 2001 From: glebius Date: Sun, 10 Jan 2016 20:10:34 +0000 Subject: [PATCH] Fix bhyve(1) operation on vmnet devices, broken in r293459. --- usr.sbin/bhyve/pci_virtio_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/pci_virtio_net.c b/usr.sbin/bhyve/pci_virtio_net.c index a8c56210e927..6f264a73788a 100644 --- a/usr.sbin/bhyve/pci_virtio_net.c +++ b/usr.sbin/bhyve/pci_virtio_net.c @@ -850,7 +850,8 @@ pci_vtnet_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) 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);