-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Inet] always copy the pbuf on lwIP platforms #20923
Conversation
PR #20923: Size comparison from ea78432 to 84933f6 Increases (6 builds for cc13x2_26x2)
Decreases (19 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, p6, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
84933f6
to
de26a82
Compare
PR #20923: Size comparison from 077128d to de26a82 Increases (9 builds for cc13x2_26x2, nrfconnect, telink)
Decreases (18 builds for bl602, cc13x2_26x2, efr32, esp32, p6, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
de26a82
to
a11d055
Compare
PR #20923: Size comparison from eeb75da to a11d055 Increases (8 builds for cc13x2_26x2, k32w, telink)
Decreases (17 builds for bl602, cc13x2_26x2, efr32, esp32, p6)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
I am wondering: wouldn't a better fix, given #19393, be:
Then we would not need to do the copy-on-incoming-every-time thing, I would think. That can be a followup to this PR, obviously; please make sure there's an issue tracking that if it makes sense. |
a11d055
to
b674860
Compare
TODO added. |
PR #20923: Size comparison from f646b00 to b674860 Increases (6 builds for cc13x2_26x2)
Decreases (20 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, p6, telink)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
This PR seems to be causing out-of-pbufs failures on devices: #21832 |
In LwIPReceiveUDPMessage, the new operation will be performed, when there are many udp packets in the local area network, the memory consumption will be too fast. Have you encountered similar problems? |
Problem
19393
is causing test failures in the group session test cases. The packet buffer clone won't work if the lwIP pbuf is non-contiguous.
Change overview
Always copy the lwIP pbuf to ensure contiguous memory layout.
Testing
How was this tested? (at least one bullet point required)