conn rcv_lock converted to spinlock, struct cor_sock created, kernel_packet skb_clone...
[cor_2_6_31.git] / net / cor / settings.h
blob6631723bb2d7ccb946c0148f917c7a3d6260ae3a
1 #define MAX_PACKETS_IN_RCVQUEUE 32
3 #define MAX_TOTAL_OOO_PACKETS 128
4 #define MAX_TOTAL_OOO_PER_NEIGH 32
5 #define MAX_TOTAL_OOO_PER_CONN 12
7 #define MAX_TOTAL_BUFFER_SIZE 256
9 #define MAX_CMSGS 2048
10 #define MAX_CMSGS_PER_NEIGH 256
11 #define GUARANTEED_CMSGS_PER_NEIGH 32
13 #define MAX_URGENT_CMSGS_PER_NEIGH 8
14 #define MAX_URGENT_CMSGS_PER_NEIGH_RETRANSALLOW 6
16 #define CMSG_INTERVAL_MS 100
18 #define ANNOUNCE_SEND_PACKETINTELVAL_MS 2000
20 #define PING_ALL_CONNS_TIMEOUT 5000
22 #define PING_COOKIES_PER_NEIGH 16
23 #define PING_COOKIES_NOTHROTTLE 3
24 #define PING_COOKIES_FIFO 5
25 #define PING_PONGLIMIT 2
26 #define PING_THROTTLE_LIMIT_MS 1000
27 #define PING_FORCETIME_MS 100
28 #define PING_FORCETIME_ACTIVE_MS 5000
29 #define PING_FORCETIME_ACTIVEIDLE_MS 30000
31 #define ACTIVEDELAY_INITIAL_MS 300000
32 #define ACTIVEDELAY_NOCONN_MIN_MS 30000
33 #define ACTIVEDELAY_NOCONN_MAX_MS 120000
35 #define INITIAL_TIME_MS 1000
36 #define PING_SUCCESS_CNT 10
38 #define NB_STALL_MINPINGS 10
39 #define NB_STALL_TIME_MS 10000
40 #define NB_KILL_TIME_MS 30000
42 #define CREDIT_REFRESHINTERVAL_SEC 30
43 /* time until half the credits are gone */
44 /* minimum == 2 h, otherwise int overflow when adding initial_credits */
45 #define CREDIT_DECAYTIME_HOURS 600
46 #define CREDIT_EXCHANGETAX_PERMILLE 25
48 #define BUFFERASSIGN_INIT 4194304
49 #define BUFFERASSIGN_SPEED 2097152
51 #define BUFFERSPACE_INIT 1048576
52 #define BUFFERSPACE_SPEED 1048576
53 #define BUFFERSPACE_ATA 1048576
54 #define BUFFERSPACE_RESERVE 1048576
56 #define MAX_ANNOUNCE_WINDOW 262144
58 #define LISTNEIGH_RESP_MAXSIZE 2048
60 #define BUFFERLIMIT_CONNDATA_GLOBAL 65536
61 #define BUFFERLIMIT_CONNDATA_PERCONN 4096
63 #define BUFFERLIMIT_SOCK_GLOBAL 262144
64 #define BUFFERLIMIT_SOCK_USER 131072
65 #define BUFFERLIMIT_SOCK_SOCK 65536
67 #define CONN_ACTIVITY_UPDATEINTERVAL_SEC 60
68 #define CONN_INACTIVITY_TIMEOUT_SEC 3600
70 #define CONNID_REUSE_RTTS 8