- Timestamp:
- 11/14/17 11:15:06 (3 years ago)
- Branches:
- cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- eb70703
- Parents:
- 639d952
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_ndag.c
r639d952 r5d8280a 26 26 #define ENCAP_BUFSIZE (10000) 27 27 #define CTRL_BUF_SIZE (10000) 28 #define ENCAP_BUFFERS (100 )29 30 #define RECV_BATCH_SIZE ( 20)28 #define ENCAP_BUFFERS (1000) 29 30 #define RECV_BATCH_SIZE (50) 31 31 32 32 #define FORMAT_DATA ((ndag_format_data_t *)libtrace->format_data) … … 598 598 * move on. */ 599 599 ssock->savedsize[nr] = 0; 600 nr = (nr + 1) % ENCAP_BUFFERS; 600 nr ++; 601 if (nr == ENCAP_BUFFERS) { 602 nr = 0; 603 } 601 604 ssock->nextread = ssock->saved[nr] + sizeof(ndag_common_t) + 602 605 sizeof(ndag_encap_t); … … 874 877 /* All buffers were full, so something must be 875 878 * available. */ 879 return 1; 880 } 881 882 if (avail < RECV_BATCH_SIZE / 2) { 876 883 return 1; 877 884 }
Note: See TracChangeset
for help on using the changeset viewer.