-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
nrf_modem_lib: lte_net_if: query actual link MTU #19537
base: main
Are you sure you want to change the base?
Conversation
Thank you for your contribution! Note: This comment is automatically posted and updated by the Contribs GitHub Action. |
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
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.
Thank you for your contribution.
We would also need a changelog entry for this in https://github.com/nrfconnect/sdk-nrf/blob/main/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst#modem-libraries
8a58c00
to
651dfd4
Compare
@@ -443,7 +443,7 @@ Security libraries | |||
Modem libraries | |||
--------------- | |||
|
|||
|no_changes_yet_note| | |||
* :ref:`nrf_modem_lib_lte_net_if` now automatically sets the actual link MTU on the network interface when PDN connectivity is gained. |
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.
* :ref:`nrf_modem_lib_lte_net_if` now automatically sets the actual link MTU on the network interface when PDN connectivity is gained. | |
* :ref:`nrf_modem_lib_readme`: | |
Updated the :ref:`nrf_modem_lib_lte_net_if` to automatically set the actual link :term:`Maximum Transmission Unit (MTU)` on the network interface when PDN connectivity is gained. |
651dfd4
to
94871ce
Compare
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 614788d558895a039fd94f6c6d1311a034e09793 more detailssdk-nrf:
Github labels
List of changed files detected by CI (4)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
@JordanYates Tests are failing for modem lib lte_net_if (https://github.com/nrfconnect/sdk-nrf/tree/main/tests/lib/nrf_modem_lib/lte_net_if) Please have a look. You can run the tests locally to see what is failing:
|
@@ -411,6 +411,13 @@ void test_pdn_act_without_cereg_should_not_activate_iface(void) | |||
TEST_ASSERT_TRUE(net_if_is_dormant(net_if)); | |||
} | |||
|
|||
static int pdn_mtu_1000(uint8_t cid, struct in_addr *dns4_pri, |
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.
Please place the stub at the top of the file
static int pdn_mtu_1000(uint8_t cid, struct in_addr *dns4_pri, | |
static int pdn_dynamic_params_get_stub_mtu_1000(uint8_t cid, struct in_addr *dns4_pri, |
c7a989a
to
ab04739
Compare
@JordanYates This needs to be rebased on main before it can be merged. |
Update the network interface MTU before raising the connectivity event, so that the MTU as queried by downstream users is correct, instead of an assumed value based on IPv6 required minimums. Signed-off-by: Jordan Yates <[email protected]>
Test the behaviour of the network interface under the three conditions: 1. MTU successfully queried 2. Function reports success but MTU not set 3. Function reports error Signed-off-by: Jordan Yates <[email protected]>
ab04739
to
614788d
Compare
@JordanYates Changes have been made to the PDN library and the |
Update the network interface MTU before raising the connectivity event, so that the MTU as queried by downstream users is correct, instead of an assumed value based on IPv6 required minimums.