This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 6c5bd1952af5d9debb9b50766f9a29d254fbef64
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Oct 13 12:34:21 2026 +0200

    net/ip/lwip_mn: Enable per interface checksum control
    
    Set LWIP_CHECKSUM_CTRL_PER_NETIF by default so network drivers can
    turn off software checksum generation and checking for their own
    interface only (e.g. Ethernet with hardware checksum offload), while
    other interfaces keep lwIP computing checksums.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 net/ip/lwip_mn/lwipopts/include/lwipopts.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net/ip/lwip_mn/lwipopts/include/lwipopts.h 
b/net/ip/lwip_mn/lwipopts/include/lwipopts.h
index 1892a8b3e..0d285dac8 100644
--- a/net/ip/lwip_mn/lwipopts/include/lwipopts.h
+++ b/net/ip/lwip_mn/lwipopts/include/lwipopts.h
@@ -29,6 +29,14 @@ extern "C" {
 #define LWIP_NETIF_TX_SINGLE_PBUF      1
 #define LWIP_NETIF_LOOPBACK            1       /* yes loopback interface */
 
+/*
+ * Allow checksum generation and checking to be disabled per interface,
+ * e.g. for Ethernet controllers with hardware checksum offload.
+ */
+#ifndef LWIP_CHECKSUM_CTRL_PER_NETIF
+#define LWIP_CHECKSUM_CTRL_PER_NETIF    1
+#endif
+
 #define TCPIP_THREAD_PRIO              5
 #define TCPIP_THREAD_STACKSIZE ((6 * 1024) / sizeof(portSTACK_TYPE))
 #define TCPIP_MBOX_SIZE                        10

Reply via email to