-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cleaned up Mbed LWIP configurations #11586
Conversation
@AnttiKauppila, thank you for your changes. |
@@ -71,7 +71,9 @@ | |||
#define PPP_DNS 1 | |||
|
|||
// Used as maximum size for output buffer, to restrict the memory manager get_pool_alloc_unit() | |||
#ifndef PBUF_POOL_BUFSIZE | |||
#define PBUF_POOL_BUFSIZE 536 + 40 |
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.
536+40
for IPv6 and 536+20
for IPv4?
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.
The only comment I wrote was not about these changes, only something I happened to spot during the review.
Looks good to me.
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.
Otherwise looks good.
I might add more details to the commit msg about the clean up. Reading the code, you fix the config to provide default values instead of null.
@@ -44,6 +44,7 @@ extern "C" { | |||
#endif | |||
|
|||
#ifdef LWIP_PROVIDE_ERRNO | |||
#if LWIP_PROVIDE_ERRNO == 1 |
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.
line 46 and 47 are very similar, shouldn't ifdef be removed?
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.
Did not want to change LwIP header logic here (other than remove duplicates)
@adbridge Why 6.0? Why not 5.14.x for example? |
@AnttiKauppila ahhh it's because Martin had previously marked this as needing to go to a feature branch. If there is no api change then we could conceivably take this to a patch ? |
CI started |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
Looks like a possible CI error, restarting |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
@AnttiKauppila on further analysis this looks like a genuine failure, please investigate |
[Warning] maclib_task.c@82,17: implicit declaration of function 'rda_mail_put' is invalid in C99 [-Wimplicit-function-declaration] |
Travis restarted, CI restarted as well |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
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.
I would like to see better commit msg than "Cleaned up Mbed LWIP configurations" for clean up like that in future.
As this was set as "Refactor" - thus I initially set it to the feature release.
Description
Cleaned up LWIP configuration mechanism. Moved default settings into mbed_lib.json and updated "help" sections accordingly. This is not a breaking change, if some developers have overridden those values earlier, this change has no effect for them.
Also as mbed_retarget.h defines
errno
values, there were warnings about duplicates because LWIP defined those as well by default. This has also been fixed in this PR.Pull request type
Reviewers
@VeijoPesonen @kjbracey-arm @ARMmbed/mbed-os-ipcore
Release Notes
LWIP configuration mechanism has been updated to make it easier to control default values directly from mbed_lib.json. This is not a breaking change and existing applications should still work unmodified with this change.