NewMadeleine

Documentation

« back to PM2 home.
nm_parameters.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2026 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16
17#ifndef NM_PARAMETERS_H
18#define NM_PARAMETERS_H
19
20
22#define NM_MAX_UNEXPECTED (64 * 1024)
23
25#define NM_REQ_CHUNK_PREALLOC_SIZE 256
26
28#define NM_CORE_TASK_QUEUE_SIZE 1024
29
31#define NM_DEFAULT_WINDOW 64
32
34#define NM_PREALLOC_IOV_LEN 32
35
37#define NM_ALIGN_TYPE uint32_t
38
40#define NM_PW_TIMEOUT (1000000 * 30) /* 30 seconds */
41
43#define NM_PW_TIMEOUT_PERIOD (1000000 * 5) /* 5 seconds */
44
45#endif /* NM_PARAMETERS_H */