Skip to content

cpu/stm32/periph_eth: optimize IRQ handler #18417

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

Merged

Conversation

maribu
Copy link
Member

@maribu maribu commented Aug 8, 2022

Contribution description

We can just clear both TX and RX IRQ flags in any case, as clearing a non-set flag is just a nop.

Testing procedure

Network operation should still work as usual.

Issues/PRs references

@github-actions github-actions bot added Area: cpu Area: CPU/MCU ports Platform: ARM Platform: This PR/issue effects ARM-based platforms labels Aug 8, 2022
@maribu maribu added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: network Area: Networking State: waiting for other PR State: The PR requires another PR to be merged first Area: drivers Area: Device drivers and removed Platform: ARM Platform: This PR/issue effects ARM-based platforms labels Aug 8, 2022
@benpicco benpicco requested review from aabadie and fabian18 August 8, 2022 12:45
@maribu maribu force-pushed the cpu/stm32/periph/stm32_eth/optimization branch from a5c35af to 9c0ecd8 Compare August 8, 2022 13:40
@github-actions github-actions bot added Platform: ARM Platform: This PR/issue effects ARM-based platforms and removed Area: network Area: Networking Area: drivers Area: Device drivers labels Aug 8, 2022
Copy link
Contributor

@fabian18 fabian18 left a comment

Choose a reason for hiding this comment

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

I tested with ncput.

ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:55:47,768 # ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:55:50,386 # Saved to coap://[fe80::3478:9157:9fd5:81c3]/cert.der
> ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:56:01,131 # ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:56:01,219 # Saved to coap://[fe80::3478:9157:9fd5:81c3]/cert.der
> ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:56:07,975 # ncput /nvm0/send/ta/cert.der coap://[fe80::3478:9157:9fd5:81c3]/cert.der
2022-08-08 23:56:08,063 # Saved to coap://[fe80::3478:9157:9fd5:81c3]/cert.der

It is still working well and the changes make sense.

We can just clear both TX and RX IRQ flags in any case, as clearing a
non-set flag is just a nop.
@maribu maribu force-pushed the cpu/stm32/periph/stm32_eth/optimization branch from 9c0ecd8 to bf67a9c Compare August 9, 2022 05:33
@maribu maribu added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed State: waiting for other PR State: The PR requires another PR to be merged first labels Aug 9, 2022
@chrysn chrysn added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 9, 2022
@maribu maribu merged commit 4414ed1 into RIOT-OS:master Aug 9, 2022
@maribu
Copy link
Member Author

maribu commented Aug 9, 2022

Thx :)

@maribu maribu deleted the cpu/stm32/periph/stm32_eth/optimization branch August 9, 2022 17:28
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants