mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
lwip: align the pbuf on 32 resp. 64 bit addresses
Minor speed improvements of ~6Mbit. Additionally a ethernet frame fits now into one memory allocation per pbuf. Beforehand two were allocated - one being 1514 bytes and another one being 2 bytes (monitored by instrumenting copy loop in libports/src/lib/lwip/platform/nic.cc).
This commit is contained in:
parent
8d9e7d0da2
commit
d822b82f5b
@ -54,6 +54,13 @@
|
||||
|
||||
#define MEM_LIBC_MALLOC 1
|
||||
#define MEMP_MEM_MALLOC 1
|
||||
#ifdef __x86_64__
|
||||
#define MEM_ALIGNMENT 8
|
||||
#else
|
||||
#define MEM_ALIGNMENT 4
|
||||
#endif
|
||||
#define ETH_PAD_SIZE 2
|
||||
|
||||
#define DEFAULT_ACCEPTMBOX_SIZE 128
|
||||
#define TCPIP_MBOX_SIZE 128
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user