-
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
TCP: Use RunOnTCPIP() for the LwIP TCP EndPoint and create pre-allocated connection endpoint for listen endpoint #36962
Conversation
PR #36962: Size comparison from 1b4c56c to 5256657 Increases above 0.2%:
Full report (14 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, tizen)
|
PR #36962: Size comparison from 1b4c56c to 267b09d Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@wqx6 please fix build errors and add a |
PR #36962: Size comparison from f8d457a to cca01f2 Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36962: Size comparison from f8d457a to a331147 Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@wqx6 do we know why this costs 2K of flash? that is a lot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Request changes on header and cpp file needing to reside together.
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
This reverts commit 99f823c.
@andy31415 @bzbarsky-apple I made the following change which doesn't need to add the
Could you please review it? |
PR #36962: Size comparison from ce47e22 to d5069a3 Increases above 0.2%:
Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Significant change to the code since the review.
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
…ted connection endpoint for listen endpoint (project-chip#36962) * TCP: Use RunOnTCPIP for the LwIP TCP EndPoint * fix memory leak when the pbuf_alloc gets a packet buffer with chained buffers * Restyled by clang-format * fix build issue * Try to fix CI build errors * move RunOnMatterContext to LayerFreeRTOS * add macro for PlatformEventing::LockMatterStack/UnlockMatterStack * make the new function public in LayerFreeRTOS * fix typo * add some comments in Packet buffer * Restyled by clang-format * Add macro for the RunWithMatterContextLock function * add some comment for avoiding dead lock with the new added function * review changes and revert packet buffer changes * Add PlatformLockSupport for system layer * Restyled by clang-format * fix CI build * review changes * remove some docs * use closure * Update src/platform/PlatformLockSupport.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> * update src/platform/PlatformLockSupport.cpp * Revert "update src/platform/PlatformLockSupport.cpp" This reverts commit 99f823c. * Use a pre allocated endpoint for the TCP connection * Restyled by clang-format * revert the change in system * Add pre allocated connection releasing when closing listen endpoint * typo fix * Update src/inet/TCPEndPointImplLwIP.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> --------- Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Changes
RunOnTCPIP()
inTCPEndPointImplLwIP
instead ofLOCK_TCPIP_CORE()/UNLOCK_TCPIP_CORE()
.Testing
chip_inet_config_enable_tcp_endpoint
.