Skip to content

Conversation

@ClaCodes
Copy link
Contributor

@ClaCodes ClaCodes commented Nov 8, 2025

There was technically a datarace on the global 'simulated work time' variable. To avoid that, transport the information along as part of the net-packet.

(Note: it was unlikely an issue, because it was only written, when readers should not have been active, that is why I say technically)

There was technically a datarace on the global 'simulated work time'
variable. To avoid that transport the information along as part of the
net-packet.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 8, 2025

net_pkt_cursor_init(pkt);
net_pkt_set_overwrite(pkt, true);

/* this sample does not support VLAN */
Copy link
Member

Choose a reason for hiding this comment

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

We could enforce this by adding a Kconfig file for the sample and adding suitable depends on !NET_VLAN entry.

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.

3 participants