]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357846
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 20 Feb 2020 21:52:36 +0000 (21:52 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 20 Feb 2020 21:52:36 +0000 (21:52 +0000)
commit24722aacdb06a5ac6780beef7db856a0f99095c3
tree592a5f28909821f2f9af6b4c4c53d100b2f95a15
parentb01e835b854dabb3e7f925b81e69af8c74968abb
MFC r357846

bhyve: move virtio-net header processing to pci_virtio_net

This patch cleans up the API between the net frontends (e1000,
virtio-net) and the net backends (tap and netmap).
We move the virtio-net header stripping/prepending to the
virtio-net code, where this functionality belongs.
In this way, the netbe_send() and netbe_recv() signatures
can have const struct iov * rather than struct iov *.

Reviewed by:    grehan, bcr, aleksandr.fedorov@itglobal.com
Differential Revision:  https://reviews.freebsd.org/D23342
usr.sbin/bhyve/net_backends.c
usr.sbin/bhyve/net_backends.h
usr.sbin/bhyve/net_utils.c
usr.sbin/bhyve/pci_e82545.c
usr.sbin/bhyve/pci_virtio_net.c