]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: netmap: small improvements netmap_send()
authorVincenzo Maffione <v.maffione@gmail.com>
Thu, 6 Dec 2018 16:59:05 +0000 (17:59 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 5 Mar 2019 03:27:40 +0000 (11:27 +0800)
commitcc599ed6d46250b2178eca1a06a4602acd83b706
treeee79baf42dcbfb4675532c3c674db8f704adb98c
parent6d3aaa5b255ffc55a0561d359159fdaaccf09b31
net: netmap: small improvements netmap_send()

This change improves the handling of incomplete multi-slot packets
(e.g. with the NS_MOREFRAG set), by advancing ring->head only on
complete packets. The ring->cur pointer is advanced in any case in
order to acknowledge the kernel and move the wake-up point (thus
avoiding repeated wake-ups).
Also don't be verbose when incomplete packets are found.

Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/netmap.c