diff options
author | 2017-05-05 06:41:45 +0000 | |
---|---|---|
committer | 2017-05-05 06:41:45 +0000 | |
commit | 0f203447deda439811dd4062c588ef4145a34873 (patch) | |
tree | 668061926a38f3936c13ecaff81c075b904fb3a5 /code/jasmine/buffer.h | |
parent | 01c48d84167d6e7d5eab0ffd3dd406ef7b510c72 (diff) | |
parent | 779440ef6064b2d1f2a5004bd92ae3660bc9b63a (diff) |
Merge "Increase PACKETS_PER_BUFFER to 65536"
Diffstat (limited to 'code/jasmine/buffer.h')
-rwxr-xr-x | code/jasmine/buffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/code/jasmine/buffer.h b/code/jasmine/buffer.h index e899fe62..c0b527e3 100755 --- a/code/jasmine/buffer.h +++ b/code/jasmine/buffer.h @@ -21,7 +21,7 @@ /* Exclude padding */ #define PACKET_PAYLOAD_SIZE (((PACKET_SIZE) - sizeof(struct packet_ctl)) & ~0x3) -#define PACKETS_PER_BUFFER 1024 +#define PACKETS_PER_BUFFER 65536 #define DEF_PORT 18383 /* for both UDP and TCP */ @@ -51,6 +51,9 @@ struct request_ctl { uint32_t req_count; /* Requested packet slot count */ }; +#define MAX_REQ_SIZE (sizeof(struct request_ctl) + \ + PACKETS_PER_BUFFER * sizeof(uint32_t)) + extern struct buffer_ctl buffctl; extern struct packet_ctl *packetctl[PACKETS_PER_BUFFER]; |