mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Revert "virtio/vsock: fix header length on skb merging"
This reverts commit830c11c9c0which is commitf7154d967bupstream. It needs to be reverted, as the function virtio_transport_free_pkt() is in the stable Android ABI, and this function is removed in the 6.1.63 kernel as part of a series of fixes and optimizations of the virtio networking connection. To preserve the ABI (and thereby keeping the slower interface), revert the commit for now. If this needs to come back in the future, if performance for this interface needs to be resolved, it can be done so in an ABI-safe way. Bug: 161946584 Change-Id: I5d7ea0bc99094712815a8f1a13a0db4278e7e980 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1079,7 +1079,7 @@ virtio_transport_recv_enqueue(struct vsock_sock *vsk,
|
||||
memcpy(skb_put(last_skb, skb->len), skb->data, skb->len);
|
||||
free_pkt = true;
|
||||
last_hdr->flags |= hdr->flags;
|
||||
le32_add_cpu(&last_hdr->len, len);
|
||||
last_hdr->len = cpu_to_le32(last_skb->len);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user