]> git.proxmox.com Git - mirror_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>
Thu, 31 Aug 2017 16:22:38 +0000 (11:22 -0500)
commit62708c7c1236f6219f9395f00faf8ce655a2aec6
tree524644f3a59d615e8e1fc66fdd0f9b677b4bdb82
parent746e1fd00094b6fa13ec6a9cc3f9d7437c0f9d81
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