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

This commit is contained in:
glebius 2016-01-10 20:10:34 +00:00
parent 0004797569
commit 7ab2b8809c

View File

@ -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);