Skip to content

Commit 6825e6b

Browse files
Arseniy Krasnovdavem330
authored andcommitted
virtio/vsock: remove redundant 'skb_pull()' call
Since we now no longer use 'skb->len' to update credit, there is no sense to update skbuff state, because it is used only once after dequeue to copy data and then will be released. Fixes: 71dc9ec ("virtio/vsock: replace virtio_vsock_pkt with sk_buff") Signed-off-by: Arseniy Krasnov <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Acked-by: Bobby Eshleman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0777061 commit 6825e6b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/vmw_vsock/virtio_transport_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ static int virtio_transport_seqpacket_do_dequeue(struct vsock_sock *vsk,
465465
dequeued_len = err;
466466
} else {
467467
user_buf_len -= bytes_to_copy;
468-
skb_pull(skb, bytes_to_copy);
469468
}
470469

471470
spin_lock_bh(&vvs->rx_lock);

0 commit comments

Comments
 (0)