Skip to content
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

Add SKIP-RX-COPY support - using MSG_TRUNC socket option #1717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidBar-On
Copy link
Contributor

@davidBar-On davidBar-On commented Jun 16, 2024

Add SKIP-RX-COPY support - using MSG_TRUNC socket option to UDP and TCP. This is a subset of the original PR #1690 that originally supported both skip-rx-copy and zerocopy for UDP. Because of UDP related issues found by @MattCatz, I split the handling of the two solutions into two PRs.

The added option is --skip-rx-copy: for both TCP and UDP, recv(..., MSG_TRUNC) is used instead of read().

After the changes suggested by @MattCatz the PR code is mature enough.
(Note that running bootstrap.sh; configure is required before make to support the new features.)

Note that whether the feature enhance performance seems to depend on the test environment. However, th e support for the feature also allows to test its impact in the specific environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant