31 #ifndef _NTS_CONFIG_H_
32 #define _NTS_CONFIG_H_
40 static unsigned long log2ceil(
unsigned long val) {
41 return (
unsigned long)(ceil(log2((
double)val)));
55 static const uint16_t
MTU = 1500;
63 static const uint16_t MTU_ZYC2 = 1450;
80 static const uint16_t ZYC2_MSS = (MTU_ZYC2-92) & ~0x7;
85 static const uint16_t TOE_MAX_SESSIONS = 8;
87 static const uint16_t TOE_WINDOW_BITS = 16;
89 static const uint32_t TOE_BUFFER_SIZE = (1 << TOE_WINDOW_BITS);
90 static const uint32_t TOE_RX_BUFFER_SIZE = TOE_BUFFER_SIZE;
91 static const uint32_t TOE_TX_BUFFER_SIZE = TOE_BUFFER_SIZE;
93 #define TOE_MEMORY_SIZE 0x80000000
94 #define TOE_MEMORY_BASE 0x00000000
100 static const uint64_t TOE_TX_MEMORY_BASE = (
TOE_MEMORY_SIZE+TOE_RX_MEMORY_SIZE);
101 static const uint16_t TOE_RX_MEMORY_BITS = log2ceil(TOE_RX_MEMORY_SIZE);
102 static const uint16_t TOE_TX_MEMORY_BITS = log2ceil(TOE_TX_MEMORY_SIZE);
104 static const unsigned TOE_MAX_CONGESTION_WINDOW = (TOE_BUFFER_SIZE - 2048);