Skip to content

Commit

Permalink
virtio/vsock: replace virtio_vsock_pkt with sk_buff
Browse files Browse the repository at this point in the history
This commit changes virtio/vsock to use sk_buff instead of
virtio_vsock_pkt. Beyond better conforming to other net code, using
sk_buff allows vsock to use sk_buff-dependent features in the future
(such as sockmap) and improves throughput.

This patch introduces the following performance changes:

Tool: Uperf
Env: Phys Host + L1 Guest
Payload: 64k
Threads: 16
Test Runs: 10
Type: SOCK_STREAM
Before: commit b7bfaa7 ("Linux 6.2-rc3")

Before
------
g2h: 16.77Gb/s
h2g: 10.56Gb/s

After
-----
g2h: 21.04Gb/s
h2g: 10.76Gb/s

Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Bobby Eshleman authored and davem330 committed Jan 16, 2023
1 parent 5ef2702 commit 71dc9ec
Show file tree
Hide file tree
Showing 5 changed files with 498 additions and 467 deletions.
Loading

0 comments on commit 71dc9ec

Please sign in to comment.