bhyve virtio-net MTU

Peter Grehan grehan at freebsd.org
Sat Mar 7 16:27:05 UTC 2015


Hi Noah,

> Any ideas on how I can fix this? I had a quick look at the code and
 > while a comment indicates that Ethernet-sized packets are assumed

  The appended patch is a temporary fix. I'm working on a better one.

later,

Peter.

--- a/e82580/pci_virtio_net.c
+++ b/e82580/pci_virtio_net.c
@@ -82,7 +82,7 @@ __FBSDID("$FreeBSD: 
head/usr.sbin/bhyve/pci_virtio_net.c 271338 2014-09-09 22:35
                                 (1 << 21) /* guest can send gratuitous 
pkts */

  #define VTNET_S_HOSTCAPS      \
-  ( VIRTIO_NET_F_MAC | VIRTIO_NET_F_MRG_RXBUF | VIRTIO_NET_F_STATUS | \
+  ( VIRTIO_NET_F_MAC | VIRTIO_NET_F_STATUS | \
      VIRTIO_F_NOTIFY_ON_EMPTY)


More information about the freebsd-virtualization mailing list