summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-01-10 20:10:34 +0000
committerglebius <glebius@FreeBSD.org>2016-01-10 20:10:34 +0000
commit7ab2b8809cd93e9b6da4f2284f4a5851deeff012 (patch)
tree198aebe0ebec517b946729353ff06bca012c30d6 /usr.sbin
parent0004797569387e0973d2af96dcdbcefc26fe8e06 (diff)
downloadFreeBSD-src-7ab2b8809cd93e9b6da4f2284f4a5851deeff012.zip
FreeBSD-src-7ab2b8809cd93e9b6da4f2284f4a5851deeff012.tar.gz
Fix bhyve(1) operation on vmnet devices, broken in r293459.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/pci_virtio_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_net.c b/usr.sbin/bhyve/pci_virtio_net.c
index a8c5621..6f264a7 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);
OpenPOWER on IntegriCloud