Skip to content

netutils/netinit: Reduce net monitor delay on platforms without 64 bit time type.#2153

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
motec-research:netutils-timeout
Oct 25, 2023
Merged

netutils/netinit: Reduce net monitor delay on platforms without 64 bit time type.#2153
xiaoxiang781216 merged 1 commit intoapache:masterfrom
motec-research:netutils-timeout

Conversation

@g2gps
Copy link
Copy Markdown
Contributor

@g2gps g2gps commented Oct 24, 2023

Summary

Waiting for an hour can cause the calculated tick count in nxsem_clockwait to overflow due to the default width of sclock_t. Reduce the long wait period on platforms not using 64-bit time.

Impact

Timed wait in the network monitor thread now operates as intended.

Testing

Custom hardware, based on litex:arty_a7

Comment thread netutils/netinit/netinit.c Outdated
Copy link
Copy Markdown
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

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

please add a commit message

…t time type.

Waiting for an hour can cause the calculated tick count in nxsem_clockwait to overflow due to the default width of sclock_t.

Reduce the long wait period on platforms not using 64-bit time.
@xiaoxiang781216 xiaoxiang781216 merged commit a21476b into apache:master Oct 25, 2023
@g2gps g2gps deleted the netutils-timeout branch October 26, 2023 00:16
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.

3 participants