]> Git Repo - qemu.git/blobdiff - hw/net/virtio-net.c
ivshmem: add device description
[qemu.git] / hw / net / virtio-net.c
index d388c5571ddfee96671578628c9f5e54003c0f7d..a877614e3e7a14c6891e798ff6f6d5264681af4c 100644 (file)
@@ -1094,13 +1094,7 @@ static ssize_t virtio_net_receive(NetClientState *nc, const uint8_t *buf, size_t
          * must have consumed the complete packet.
          * Otherwise, drop it. */
         if (!n->mergeable_rx_bufs && offset < size) {
-#if 0
-            error_report("virtio-net truncated non-mergeable packet: "
-                         "i %zd mergeable %d offset %zd, size %zd, "
-                         "guest hdr len %zd, host hdr len %zd",
-                         i, n->mergeable_rx_bufs,
-                         offset, size, n->guest_hdr_len, n->host_hdr_len);
-#endif
+            virtqueue_discard(q->rx_vq, &elem, total);
             return size;
         }
 
This page took 0.023274 seconds and 4 git commands to generate.