summaryrefslogtreecommitdiffstats
path: root/hw/vhost_net.c
Commit message (Collapse)AuthorAgeFilesLines
* vhost: fix infinite loop on error pathMichael S. Tsirkin2010-09-141-1/+1
| | | | | | | | file.index is unsigned, hence 'while (--file.index >= 0)' will loop > forever. Change to while (file.index-- > 0). Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* vhost_net: mergeable buffers supportMichael S. Tsirkin2010-09-071-1/+23
| | | | | | use the new tap APIs to set header length Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* Remove unused eventfd.hMike McCormack2010-07-301-1/+0
| | | | | | | | This header is not present on my system and causes a build failure, but is also not used in these files, so remove it. Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* vhost_net.c: v2 Fix build failure introduced by ↵Jes Sorensen2010-05-271-1/+1
| | | | | | | | | | | | 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 The format statement expects unsigned long on x86_64, but receives unsigned long long, so gcc exits with an error. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix %lld or %llx printf format useBlue Swirl2010-05-221-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* vhost-net: disable mergeable buffersMichael S. Tsirkin2010-04-131-0/+1
| | | | | | | | | vhost in current kernels doesn't support mergeable buffers. Disable this feature if vhost is enabled, until such support is implemented. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* vhost: vhost net supportMichael S. Tsirkin2010-04-011-0/+195
This adds vhost net device support in qemu. Will be tied to tap device and virtio by following patches. Raw backend is currently missing, will be worked on/submitted separately. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud