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

Expose LWIP_SO_RCVBUF config and set on by default #50

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

andreittr
Copy link
Contributor

Description of changes

This change exposes the LWIP_SO_RCVBUF config option through the Unikraft Kconfig, configuring whether lwip should use receive buffers. Receive buffers enable support for the SO_RCVBUF socket option as well as ioctl(FIONREAD).
This option is enabled by default to provide the most compatibility.

Testing

On staging, setsockopt(SO_RCVBUF) or ioctl(FIONREAD) on a LWIP socket will error out with ENOSYS.
After this patch, these functions are available depending on the CONFIG_LWIP_RCVBUF Kconfig option.

This change exposes the LWIP_SO_RCVBUF config option through the
Unikraft Kconfig, configuring whether lwip should use receive buffers.
Receive buffers enable support for the SO_RCVBUF socket option as
well as ioctl(FIONREAD).
This option is enabled by default to provide the most compatibility.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
@razvand razvand self-assigned this Feb 5, 2024
@razvand razvand added the enhancement New feature or request label Feb 5, 2024
@razvand razvand added this to the v0.17.0 (Calypso) milestone Feb 5, 2024
Copy link
Member

@eduardvintila eduardvintila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition, thx.

Reviewed-by: Eduard Vintilă eduard.vintila47@gmail.com

Copy link

@andreistan26 andreistan26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Reviewed-by: Andrei Stan andreistan2003@gmail.com

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand changed the base branch from staging to staging-50 February 7, 2024 11:34
@razvand razvand merged commit 19519dd into unikraft:staging-50 Feb 7, 2024
razvand pushed a commit that referenced this pull request Feb 7, 2024
This change exposes the LWIP_SO_RCVBUF config option through the
Unikraft Kconfig, configuring whether lwip should use receive buffers.
Receive buffers enable support for the SO_RCVBUF socket option as
well as ioctl(FIONREAD).
This option is enabled by default to provide the most compatibility.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

4 participants