summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2015-10-02 02:09:50 +0000
committergrehan <grehan@FreeBSD.org>2015-10-02 02:09:50 +0000
commit62cf297dcaac0b34133b6a103cac8f705db8a091 (patch)
treecffe7b9041020e722576a8b6f897dac5b957223e /usr.sbin/bhyve
parentb73737cbd4b63a4981e267d46896c0b0143d560b (diff)
downloadFreeBSD-src-62cf297dcaac0b34133b6a103cac8f705db8a091.zip
FreeBSD-src-62cf297dcaac0b34133b6a103cac8f705db8a091.tar.gz
- Increase the max number of indirect descriptors to match
the largest that the Windows virtio driver can send down - Always advertize indirect descriptors. The Illumos virtio driver won't attach unless this capability is seen. Reviewed by: neel
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/pci_virtio_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_net.c b/usr.sbin/bhyve/pci_virtio_net.c
index 3781ea9..aa9b581 100644
--- a/usr.sbin/bhyve/pci_virtio_net.c
+++ b/usr.sbin/bhyve/pci_virtio_net.c
@@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$");
#define VTNET_RINGSZ 1024
-#define VTNET_MAXSEGS 32
+#define VTNET_MAXSEGS 256
/*
* Host capabilities. Note that we only offer a few of these.
@@ -84,7 +84,7 @@ __FBSDID("$FreeBSD$");
#define VTNET_S_HOSTCAPS \
( VIRTIO_NET_F_MAC | VIRTIO_NET_F_MRG_RXBUF | VIRTIO_NET_F_STATUS | \
- VIRTIO_F_NOTIFY_ON_EMPTY)
+ VIRTIO_F_NOTIFY_ON_EMPTY | VIRTIO_RING_F_INDIRECT_DESC)
/*
* PCI config-space "registers"
OpenPOWER on IntegriCloud