Skip to content

Commit 2597cfe

Browse files
committed
- Fix the LARGE_SIZE constant so it uses the lookaside list for mbuf ext buffers allocations again
- We added one byte to each ext buffer as a ref count for oskit_buffer_* functions so we need to compensate for that by adding one byte to the LARGE_SIZE constant - This should boost performance too because we allocate one ext buffer for each incoming and outgoing TCP packet svn path=/branches/aicom-network-branch/; revision=45531
1 parent 9e677d1 commit 2597cfe

File tree

1 file changed

+1
-1
lines changed
  • lib/drivers/ip/transport/tcp

1 file changed

+1
-1
lines changed

lib/drivers/ip/transport/tcp/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int TCPPacketSend(void *ClientData, OSK_PCHAR data, OSK_UINT len ) {
119119
#define MEM_PROFILE 0
120120

121121
#define SMALL_SIZE 128
122-
#define LARGE_SIZE 2048
122+
#define LARGE_SIZE 2049
123123

124124
#define SIGNATURE_LARGE 'LLLL'
125125
#define SIGNATURE_SMALL 'SSSS'

0 commit comments

Comments
 (0)