Added guarded RX frame buffer to lwIP driver to protect against concurrent core access

This commit is contained in:
Joseph Henry
2018-02-07 11:35:51 -08:00
parent e5d0c07f5b
commit f6256b71da
2 changed files with 92 additions and 45 deletions

View File

@@ -50,6 +50,8 @@
#define STACK_PICO 0
#define NO_STACK 0 // for layer-2 only (this will omit all userspace network stack code)
#define LWIP_GUARDED_BUF_CHECK_INTERVAL 50 // in ms
#define LWIP_MAX_GUARDED_RX_BUF_SZ 1024 // number of frame pointers that can be cached waiting for receipt into core
/* sanity checks for userspace network stack and socket API layer choices
@@ -219,6 +221,8 @@ struct sockaddr_ll {
/* lwIP */
/****************************************************************************/
#define LWIP_NETIF_STATUS_CALLBACK 0
// For LWIP configuration see: include/lwipopts.h
#if defined(STACK_LWIP)