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

Switch to LWIP_CHKSUM_ALGORITHM #3 #42

Merged
merged 1 commit into from
Jan 9, 2020
Merged

Switch to LWIP_CHKSUM_ALGORITHM #3 #42

merged 1 commit into from
Jan 9, 2020

Conversation

rsaxvc
Copy link
Contributor

@rsaxvc rsaxvc commented Jan 9, 2020

Are you sure you need it as an lwIP patch? It seems easier as an lwipopt. We can do patches too if you like.

Algorithm 3 takes about 40% less time per packet on xtensa lx106,
so switch from checksum algorithm # 2 (lwip default) to # 3.

160MHz CPU, 1450B
46us - Algorithm 1
33us - Algorithm 2
19us - Algorithm 3

80 MHz CPU, 1450B
92us - Algorithm 1
64us - Algorithm 2
37us - Algorithm 3

Algorithm 3 takes about 40% less time per packet on xtensa lx106,
so switch from checksum algorithm #2(lwip default) to #3.

 160MHz CPU, 1450B
46us - Algorithm 1
33us - Algorithm 2
19us - Algorithm 3

 80 MHz CPU, 1450B
92us - Algorithm 1
64us - Algorithm 2
37us - Algorithm 3
@d-a-v
Copy link
Owner

d-a-v commented Jan 9, 2020

Well I didn't know the three algorithms were already implemented.
Thanks for the heads up and the PR !

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.

2 participants