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

net: sockets: socket_service: change callback arg to struct net_socket_service_event #80041

Merged

Conversation

maass-hamburg
Copy link
Collaborator

This removes the remains from when there was a async mode for the socket service.
Mainly it changes the callback argument from struct k_work *work to struct net_socket_service_event.

remove reference to async socket service

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@maass-hamburg maass-hamburg marked this pull request as ready for review October 18, 2024 08:55
@zephyrbot zephyrbot added area: Sockets Networking sockets area: Networking Release Notes To be mentioned in the release notes area: Shell Shell subsystem labels Oct 18, 2024
as the async type got removed, there is only
one type left, so no need to show that.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
optimize code for the net socket service.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just minor nits about commit subjects

subsys/net/lib/shell/sockets.c Show resolved Hide resolved
include/zephyr/net/socket_service.h Show resolved Hide resolved
include/zephyr/net/socket_service.h Show resolved Hide resolved
@maass-hamburg maass-hamburg force-pushed the socket_service_remove_async branch 2 times, most recently from d0b3990 to 4bd4999 Compare October 18, 2024 10:32
jukkar
jukkar previously approved these changes Oct 18, 2024
pdgendt
pdgendt previously approved these changes Oct 18, 2024
@maass-hamburg
Copy link
Collaborator Author

forgot to change it for the sample

pdgendt
pdgendt previously approved these changes Oct 21, 2024
Copy link
Contributor

@rlubos rlubos 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, but it seems there's still some leftovers in LLMNR code.

remove k_work related code and change
the argument of the callback to `struct net_socket_service_event`.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
mention change of callback function for the socket service.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@aescolar aescolar merged commit 74266e5 into zephyrproject-rtos:main Oct 23, 2024
27 checks passed
@maass-hamburg maass-hamburg deleted the socket_service_remove_async branch October 23, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Samples Samples area: Shell Shell subsystem area: Sockets Networking sockets Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants