Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2015 02:09:50 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288470 - head/usr.sbin/bhyve
Message-ID:  <201510020209.t9229oW8021604@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Fri Oct  2 02:09:50 2015
New Revision: 288470
URL: https://svnweb.freebsd.org/changeset/base/288470

Log:
  - 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

Modified:
  head/usr.sbin/bhyve/pci_virtio_net.c

Modified: head/usr.sbin/bhyve/pci_virtio_net.c
==============================================================================
--- head/usr.sbin/bhyve/pci_virtio_net.c	Fri Oct  2 02:08:40 2015	(r288469)
+++ head/usr.sbin/bhyve/pci_virtio_net.c	Fri Oct  2 02:09:50 2015	(r288470)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510020209.t9229oW8021604>