From 070e449690b5a13991c3cd1ac250e893a0186430 Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Fri, 27 Apr 2018 16:54:01 -0500 Subject: [PATCH] loopif: disable checksums This disable checksum generation and checking for the loopback netif when LWIP_CHECKSUM_CTRL_PER_NETIF is enabled Checksums are not needed for the loopback adapter and this will increase performance for loopback communication --- src/core/netif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/netif.c b/src/core/netif.c index 1d668e27..9033b46c 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -166,6 +166,7 @@ netif_loopif_init(struct netif *netif) #if LWIP_LOOPIF_MULTICAST netif_set_flags(netif, NETIF_FLAG_IGMP); #endif + NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_DISABLE_ALL); return ERR_OK; } #endif /* LWIP_HAVE_LOOPIF */