diff options
| author | Jason Wang | 2015-09-25 07:21:30 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-10-01 15:16:52 +0200 |
| commit | 0cf33fb6b49a19de32859e2cdc6021334f448fb3 (patch) | |
| tree | 56554140568dd3c15161a5a8bce6e95b3ee8229f /exec.c | |
| parent | virtio: introduce virtqueue_discard() (diff) | |
| download | qemu-0cf33fb6b49a19de32859e2cdc6021334f448fb3.tar.gz qemu-0cf33fb6b49a19de32859e2cdc6021334f448fb3.tar.xz qemu-0cf33fb6b49a19de32859e2cdc6021334f448fb3.zip | |
virtio-net: correctly drop truncated packets
When packet is truncated during receiving, we drop the packets but
neither discard the descriptor nor add and signal used
descriptor. This will lead several issues:
- sg mappings are leaked
- rx will be stalled if a lots of packets were truncated
In order to be consistent with vhost, fix by discarding the descriptor
in this case.
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions
