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-07-27 18:11:53 +03:00
2015-07-27 22:44:47 +03:00
2015-09-19 16:40:15 +02:00
2015-09-25 12:04:43 +02:00
2015-09-11 10:45:43 +03:00
2015-09-18 14:39:29 +02:00
2015-09-25 14:56:22 +02:00
2015-09-11 10:21:38 +03:00
2015-09-19 16:40:15 +02:00
2015-09-14 14:39:49 +01:00
2015-09-25 12:04:43 +02:00
2015-09-18 14:39:29 +02:00
2015-09-14 16:13:16 +01:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-25 21:52:30 +01:00
2015-09-18 10:58:56 -04:00
2015-09-18 14:39:29 +02:00
2015-09-25 12:04:42 +02:00
2015-02-26 12:42:16 +01:00
2015-09-09 15:34:53 +02:00
2015-09-25 12:04:43 +02:00
2015-09-25 12:04:43 +02:00
2015-07-03 17:47:58 -03:00
2015-09-25 12:04:43 +02:00
2015-09-25 21:52:30 +01:00
2015-09-20 22:48:38 +02:00
2015-09-25 12:04:43 +02:00
2015-10-01 16:16:52 +03:00
2015-09-11 10:21:38 +03:00
2015-09-25 21:52:30 +01:00
2015-09-18 14:39:29 +02:00
2015-06-23 22:58:36 +02:00
2015-09-20 22:48:39 +02:00
2014-10-24 12:19:11 +01:00
2015-09-25 12:04:44 +02:00
2015-09-25 21:52:30 +01:00
2015-09-25 12:04:41 +02:00
2015-09-11 10:45:43 +03:00
2015-09-19 16:40:15 +02:00
2015-09-07 10:39:28 +01:00
2015-09-25 12:04:44 +02:00
2015-09-25 12:04:44 +02:00
2015-09-07 10:39:27 +01:00
2015-09-25 14:56:05 +02:00
2015-09-11 10:21:38 +03:00
2015-09-25 12:04:44 +02:00
2015-09-19 16:40:15 +02:00
2015-09-23 23:34:17 +02:00
2015-09-23 21:27:17 -06:00
2015-10-01 16:16:52 +03:00
2015-09-25 14:52:17 +02:00
2015-09-11 10:45:43 +03:00
2015-09-19 16:40:15 +02:00
2015-09-25 12:04:44 +02:00
2015-08-13 14:08:30 +03:00