mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
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
This commit is contained in:
parent
a445172661
commit
070e449690
@ -166,6 +166,7 @@ netif_loopif_init(struct netif *netif)
|
|||||||
#if LWIP_LOOPIF_MULTICAST
|
#if LWIP_LOOPIF_MULTICAST
|
||||||
netif_set_flags(netif, NETIF_FLAG_IGMP);
|
netif_set_flags(netif, NETIF_FLAG_IGMP);
|
||||||
#endif
|
#endif
|
||||||
|
NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_DISABLE_ALL);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_HAVE_LOOPIF */
|
#endif /* LWIP_HAVE_LOOPIF */
|
||||||
|
Loading…
Reference in New Issue
Block a user