diff options
author | glebius <glebius@FreeBSD.org> | 2016-01-10 20:10:34 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-01-10 20:10:34 +0000 |
commit | 7ab2b8809cd93e9b6da4f2284f4a5851deeff012 (patch) | |
tree | 198aebe0ebec517b946729353ff06bca012c30d6 /usr.sbin | |
parent | 0004797569387e0973d2af96dcdbcefc26fe8e06 (diff) | |
download | FreeBSD-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.c | 3 |
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); |