Skip to content

Conversation

@LingaoM
Copy link
Contributor

@LingaoM LingaoM commented Sep 24, 2024

Using an independent Mesh workq will better ensure the reliability of mesh message sending, including when sysworkq is blocked elsewhere, also to make the host always send packets

jhedberg
jhedberg previously approved these changes Sep 25, 2024
jhedberg
jhedberg previously approved these changes Sep 26, 2024
@alxelax
Copy link
Contributor

alxelax commented Sep 26, 2024

Hi, considering issues with collaboration between Mesh and Host do we really need to use system work queue?
#77241
Probably it is worth to leave only specific queue that @LingaoM added here and remove the system work queue usage.
@PavelVPV, @jhedberg opinions?

PavelVPV
PavelVPV previously approved these changes Oct 31, 2024
alxelax
alxelax previously approved these changes Oct 31, 2024
@LingaoM LingaoM added this to the v4.0.0 milestone Nov 1, 2024
Copy link
Contributor

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

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

Generally looks good, only some minor nits.

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider reducing this title to:

Suggested change
bool "Send messages from in the mesh-specific workqueue"
bool "Mesh-specific workqueue"

This will thing look neater in menuconfig, which is where the title has a role.
Without change:
image

With change:
image

Copy link
Contributor

Choose a reason for hiding this comment

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

It's confusing to have config options together with choice entries like this, as it makes it a harder for the developer to identify the specific choice entries.

image

Also note, that this construct is only possible because the config types are not bools.
Please move the int entries outside the choice.

Copy link
Contributor

Choose a reason for hiding this comment

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

Related to other comment, consider reducing this title to:

Suggested change
bool "Send messages from the system workqueue"
bool "System workqueue"

this PR is to make the host always send packets.

Signed-off-by: Lingao Meng <[email protected]>
@LingaoM LingaoM dismissed stale reviews from alxelax and PavelVPV via 84220f2 November 1, 2024 09:08
@LingaoM LingaoM force-pushed the enhance_mesh_workq branch from 0430c6d to 84220f2 Compare November 1, 2024 09:08
@mmahadevan108 mmahadevan108 merged commit b9fbfc9 into zephyrproject-rtos:main Nov 5, 2024
26 checks passed
PavelVPV added a commit to PavelVPV/zephyr that referenced this pull request Nov 25, 2024
Fix extracting role from k_work.
Hot fix for zephyrproject-rtos#78914

Signed-off-by: Pavel Vasilyev <[email protected]>
nashif pushed a commit that referenced this pull request Nov 28, 2024
Fix extracting role from k_work.
Hot fix for #78914

Signed-off-by: Pavel Vasilyev <[email protected]>
zephyrbot pushed a commit that referenced this pull request Nov 28, 2024
Fix extracting role from k_work.
Hot fix for #78914

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit f5409bd)
dkalowsk pushed a commit that referenced this pull request Dec 6, 2024
Fix extracting role from k_work.
Hot fix for #78914

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit f5409bd)
nordic-krch pushed a commit to nordic-krch/zephyr that referenced this pull request Dec 11, 2024
…_work

Fix extracting role from k_work.
Hot fix for zephyrproject-rtos#78914

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit f5409bd)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 52c7aa82212fb9280bd733145262c0d32d8d5b27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants