Skip to content

Commit 3fd7c59

Browse files
committed
net: use writev when writing frames to tap
This allows us to avoid an extra user-space copy of the packet we are transmitting to the tap. We use directly the buffers described by the `DescriptorChain` by means of `IoVecBuffer`s. Signed-off-by: Babis Chalios <[email protected]>
1 parent eb683be commit 3fd7c59

File tree

6 files changed

+149
-169
lines changed

6 files changed

+149
-169
lines changed

resources/seccomp/aarch64-unknown-linux-musl.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
{
2525
"syscall": "write"
2626
},
27+
{
28+
"syscall": "writev",
29+
"comment": "Used by the VirtIO net device to write to tap"
30+
},
2731
{
2832
"syscall": "fsync"
2933
},

resources/seccomp/x86_64-unknown-linux-musl.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
{
2525
"syscall": "write"
2626
},
27+
{
28+
"syscall": "writev",
29+
"comment": "Used by the VirtIO net device to write to tap"
30+
},
2731
{
2832
"syscall": "fsync"
2933
},

0 commit comments

Comments
 (0)