Jason Wang 0cf33fb6b4 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>
2015-10-01 16:16:52 +03:00
..
2015-09-11 10:45:43 +03:00
2015-07-27 14:12:18 +01:00
2015-09-07 10:39:30 +01:00
2015-07-20 17:47:24 +01:00
2015-07-27 14:12:18 +01:00
2015-09-07 10:39:30 +01:00
2015-09-02 14:51:07 +01:00
2015-09-02 14:51:07 +01:00
2015-07-27 14:12:18 +01:00
2015-09-25 14:53:50 +02:00
2015-07-27 14:12:18 +01:00
2015-09-25 14:53:29 +02:00