]> git.ipfire.org Git - thirdparty/qemu.git/commit
slirp: fix clearing ifq_so from pending packets
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 24 Aug 2017 23:35:53 +0000 (01:35 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 12 Sep 2017 16:24:43 +0000 (11:24 -0500)
commit53d421dd9cd11a961903b59a29176e3c11f13519
treedd74d25fef6da276212b5faafcd20bb944117398
parent1ab5eb4efb91a3d4569b0df6e824cc08ab4bd8ec
slirp: fix clearing ifq_so from pending packets

The if_fastq and if_batchq contain not only packets, but queues of packets
for the same socket. When sofree frees a socket, it thus has to clear ifq_so
from all the packets from the queues, not only the first.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 1201d308519f1e915866d7583d5136d03cc1d384)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
slirp/socket.c