LwIP fine tuning
This commit is contained in:
parent
3fad9accbd
commit
bbf4706c50
3 changed files with 6 additions and 6 deletions
|
@ -167,7 +167,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t * mbox, void **msg, u32_t timeout)
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = mailbox_ptr_fetch(&mbox->mailbox, msg, timeout);
|
err = mailbox_ptr_fetch(&mbox->mailbox, msg, timeout);
|
||||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_arch_mbox_fetch: %d\n", err));
|
//LWIP_DEBUGF(SYS_DEBUG, ("sys_arch_mbox_fetch: %d\n", err));
|
||||||
if (!err)
|
if (!err)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = mailbox_ptr_trypost(&mbox->mailbox, msg);
|
err = mailbox_ptr_trypost(&mbox->mailbox, msg);
|
||||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_trypost: %d"\n, err));
|
//LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_trypost: %d"\n, err));
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ typedef size_t mem_ptr_t;
|
||||||
#define MEM_ALIGNMENT 4
|
#define MEM_ALIGNMENT 4
|
||||||
#define ETH_PAD_SIZE 2
|
#define ETH_PAD_SIZE 2
|
||||||
|
|
||||||
#define LWIP_CHKSUM_ALGORITHM 3
|
#define LWIP_CHKSUM_ALGORITHM 2
|
||||||
|
|
||||||
/* prototypes for printf() and abort() */
|
/* prototypes for printf() and abort() */
|
||||||
#include <metalsvm/stdio.h>
|
#include <metalsvm/stdio.h>
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
*/
|
*/
|
||||||
#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN
|
#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN
|
||||||
|
|
||||||
// On the SCC, we have not to check incoming messages
|
// On the SCC, we have not to check incoming messages from the trusted MCPC
|
||||||
#ifdef CONFIG_ROCKCREEK
|
#ifdef CONFIG_ROCKCREEK
|
||||||
/**
|
/**
|
||||||
* CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets.
|
* CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets.
|
||||||
|
@ -202,12 +202,12 @@
|
||||||
#define DHCP_DEBUG LWIP_DBG_OFF
|
#define DHCP_DEBUG LWIP_DBG_OFF
|
||||||
#define ETHARP_DEBUG LWIP_DBG_OFF
|
#define ETHARP_DEBUG LWIP_DBG_OFF
|
||||||
#define TCPIP_DEBUG LWIP_DBG_OFF
|
#define TCPIP_DEBUG LWIP_DBG_OFF
|
||||||
#define SYS_DEBUG LWIP_DBG_OFF
|
#define SYS_DEBUG LWIP_DBG_ON
|
||||||
#define RAW_DEBUG LWIP_DBG_OFF
|
#define RAW_DEBUG LWIP_DBG_OFF
|
||||||
#define MEM_DEBUG LWIP_DBG_OFF
|
#define MEM_DEBUG LWIP_DBG_OFF
|
||||||
#define IP_DEBUG LWIP_DBG_OFF
|
#define IP_DEBUG LWIP_DBG_OFF
|
||||||
#define INET_DEBUG LWIP_DBG_OFF
|
#define INET_DEBUG LWIP_DBG_OFF
|
||||||
#define NETIF_DEBUG LWIP_DBG_OFF
|
#define NETIF_DEBUG LWIP_DBG_ON
|
||||||
#define TIMERS_DEBUG LWIP_DBG_OFF
|
#define TIMERS_DEBUG LWIP_DBG_OFF
|
||||||
#define SOCKETS_DEBUG LWIP_DBG_OFF
|
#define SOCKETS_DEBUG LWIP_DBG_OFF
|
||||||
#define PBUF_DEBUG LWIP_DBG_OFF
|
#define PBUF_DEBUG LWIP_DBG_OFF
|
||||||
|
|
Loading…
Add table
Reference in a new issue