Skip to content

Use readv for the RX path of the network device to avoid one memory copy per frame #4799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions resources/seccomp/aarch64-unknown-linux-musl.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,108 @@
"syscall": "writev",
"comment": "Used by the VirtIO net device to write to tap"
},
{
"syscall": "readv",
"comment": "Used by the VirtIO net device to read from tap"
},
{
"syscall": "memfd_create",
"comment": "Used by the IovDeque implementation"
},
{
"syscall": "fcntl",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "FCNTL_F_SETFD"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 6,
"comment": "F_SEAL_SHRINK|F_SEAL_GROW"
}
]
},
{
"syscall": "fcntl",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "FCNTL_F_SETFD"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 1,
"comment": "F_SEAL_SEAL"
}
]
},
{
"syscall": "mmap",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 4096,
"comment": "Page size allocation"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 3,
"comment": "PROT_READ|PROT_WRITE"
},
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 17,
"comment": "MAP_SHARED|MAP_FIXED"
}
]
},
{
"syscall": "mmap",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 8192,
"comment": "2 pages allocation"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 0,
"comment": "PROT_NONE"
},
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 34,
"comment": "MAP_PRIVATE|MAP_ANONYMOUS"
}
]
},
{
"syscall": "fsync"
},
Expand Down
102 changes: 102 additions & 0 deletions resources/seccomp/x86_64-unknown-linux-musl.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,108 @@
"syscall": "writev",
"comment": "Used by the VirtIO net device to write to tap"
},
{
"syscall": "readv",
"comment": "Used by the VirtIO net device to read from tap"
},
{
"syscall": "memfd_create",
"comment": "Used by the IovDeque implementation"
},
{
"syscall": "fcntl",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "FCNTL_F_SETFD"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 6,
"comment": "F_SEAL_SHRINK|F_SEAL_GROW"
}
]
},
{
"syscall": "fcntl",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "FCNTL_F_SETFD"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 1,
"comment": "F_SEAL_SEAL"
}
]
},
{
"syscall": "mmap",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 4096,
"comment": "Page size allocation"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 3,
"comment": "PROT_READ|PROT_WRITE"
},
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 17,
"comment": "MAP_SHARED|MAP_FIXED"
}
]
},
{
"syscall": "mmap",
"comment": "Used by the IovDeque implementation",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 8192,
"comment": "2 pages allocation"
},
{
"index": 2,
"type": "dword",
"op": "eq",
"val": 0,
"comment": "PROT_NONE"
},
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 34,
"comment": "MAP_PRIVATE|MAP_ANONYMOUS"
}
]
},
{
"syscall": "fsync"
},
Expand Down
Loading
Loading