summaryrefslogtreecommitdiff
path: root/sys/dev/ofw/openfirm.h
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2016-07-09 09:06:23 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2016-07-09 09:06:23 +0000
commitf5a617912a3335375e11717bd7fb496e3e5e9f2e (patch)
tree025ed9339571a54c7dde7185e2316d533c104dc4 /sys/dev/ofw/openfirm.h
parent853319c9d7ce92a02a2795af852c30cdd5963fe0 (diff)
Prepare vionet to be handled asynchronously to the VCPU thread
This splits the handling of received data into a separate function that can later be called in parallel to the VCPU thread instead of handling received packets on VCPU exits only. It also makes virtq accesses in the rx path safe to run in parallel to the VCPU thread: the last index into the 'avail' ring the driver has notified to the host is kept track of. It also makes sure that the host only writes back to the 'avail' ring instead of modifying the whole receive virtq. While there, describe what virtio_vq_info and virtio_io_cfg are used for, as suggested by mlarkin@ ok mlarkin@
Diffstat (limited to 'sys/dev/ofw/openfirm.h')
0 files changed, 0 insertions, 0 deletions