]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC virtio-net changes.
authorgrehan <grehan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Sep 2014 19:08:54 +0000 (19:08 +0000)
committergrehan <grehan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 16 Sep 2014 19:08:54 +0000 (19:08 +0000)
commitf63d2627102955c594fcc294cf19f6d356416c0b
treeec0fc4ebfa43233e3bb88a5fa8d872e7ddc1ea51
parentdadf1d848d1c81b4eb63db303ce01acb1c42fdde
MFC virtio-net changes.

Re-tested with NetBSD/amd64 5.2.2, 6.1.4 and 7-beta.

r271299:
Add a callback to be notified about negotiated features.

r271338:
Allow vtnet operation without merged rx buffers.

NetBSD's virtio-net implementation doesn't negotiate
the merged rx-buffers feature. To support this, check
to see if the feature was negotiated, and then adjust
the operation of the receive path accordingly by using
a larger iovec, and a smaller rx header.
In addition, ignore writes to the (read-only) status byte.

Approved by: re (glebius)
Obtained from: Vincenzo Maffione, Universita` di Pisa (r271299)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bhyve/pci_virtio_block.c
usr.sbin/bhyve/pci_virtio_net.c
usr.sbin/bhyve/pci_virtio_rnd.c
usr.sbin/bhyve/virtio.c
usr.sbin/bhyve/virtio.h