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

[network] Wiznet Ethernet performance improvements #2708

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Conversation

scott-brust
Copy link
Member

Problem

Ethernet performance on P2 platforms is slower and less reliable compared to gen3 implementations

Solution

This PR improves ethernet performance with a number of changes

  • [p2][photon2] Improve ethernet speed by disabling debounce detection on wiznet interrupt pin
  • [all] Filter IPV6 packets, as they are not currently fully supported
  • [all] Limit the number of frames the wiznet driver can input into the lwip stack based on number of packet buffers available
  • [all] Avoid dropping packets if the size header can be read but there is no buffer available for the packet data itself.

Steps to Test

Enable ethernet on a P2/Photon2 platform

Example App

See tinker

References

Credit to @avtolstoy as original author

@scott-brust scott-brust added this to the 5.6.0 milestone Nov 13, 2023
@avtolstoy avtolstoy merged commit 7a9b6b6 into develop Nov 14, 2023
13 checks passed
@avtolstoy avtolstoy deleted the fix/p2-eth-perf branch November 14, 2023 17:03
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