Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAlberto!
1) LWIP_INLINE_IP_CHKSUM is defined by default in lwIP/src/core/ipv4/ip.c. line 64. I guess the correct way to turn it on is# define LWIP_INLINE_IP_CHKSUM 1 in "lwipopts.h". 2) The patches I had to make to compile original lwIP_Nios_II_Example with lwIP_1.4.0rc1 are the following: lwipopts.h: +# define NO_SYS_NO_TIMERS 1 main.c: +# include "lwip/tcp_impl.h" 3) To switch off UDP checksum: lwipopts.h: # define CHECKSUM_GEN_UDP 0 4) Please note also that the benchmarks I had posted were related to the benchmarking program I had attached. It is intentionally very simplistic and just sends continuously the same preallocated pbuf without any processing to give upper bound estimation for stack itself. 5) Verify that bsp is compiled with -O3 also. Best regards, Igor