Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 1 | .. _configuration_reference: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 2 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 3 | Configuration Reference |
| 4 | ======================= |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 5 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 6 | Below is the list of some section names and their associated parameters. |
| 7 | This is not an exhaustive list, but should give you an idea of how VPP can be configured. |
| 8 | |
| 9 | For all of the configuration parameters search the source code for instances of |
| 10 | **VLIB_CONFIG_FUNCTION** and **VLIB_EARLY_CONFIG_FUNCTION**. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 11 | |
| 12 | For example, the invocation *'VLIB_CONFIG_FUNCTION (foo_config, "foo")'* will |
| 13 | cause the function *'foo_config'* to receive all parameters given in a |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 14 | parameter block named "foo": "foo { arg1 arg2 arg3 ... }". |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 15 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 16 | The unix section |
| 17 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 18 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 19 | Configures VPP startup and behavior type attributes, as well and any OS based |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 20 | attributes. |
| 21 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 22 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 23 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 24 | unix { |
| 25 | nodaemon |
| 26 | log /var/log/vpp/vpp.log |
| 27 | full-coredump |
| 28 | cli-listen /run/vpp/cli.sock |
| 29 | gid vpp |
| 30 | } |
| 31 | |
| 32 | nodaemon |
| 33 | ^^^^^^^^ |
| 34 | |
| 35 | Do not fork / background the vpp process. Typical when invoking VPP |
| 36 | applications from a process monitor. Set by default in the default |
| 37 | *'startup.conf'* file. |
| 38 | |
| 39 | .. code-block:: console |
| 40 | |
| 41 | nodaemon |
| 42 | |
Ruslan Babayev | e31820a | 2020-02-14 17:45:02 -0800 | [diff] [blame] | 43 | nosyslog |
| 44 | ^^^^^^^^ |
| 45 | |
| 46 | Disable syslog and log errors to stderr instead. Typical when invoking |
| 47 | VPP applications from a process monitor like runit or daemontools that |
| 48 | pipe service's output to a dedicated log service, which will typically |
| 49 | attach a timestamp and rotate the logs as necessary. |
| 50 | |
| 51 | .. code-block:: console |
| 52 | |
| 53 | nosyslog |
| 54 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 55 | interactive |
| 56 | ^^^^^^^^^^^ |
| 57 | |
| 58 | Attach CLI to stdin/out and provide a debugging command line interface. |
| 59 | |
| 60 | .. code-block:: console |
| 61 | |
| 62 | interactive |
| 63 | |
| 64 | log <filename> |
| 65 | ^^^^^^^^^^^^^^ |
| 66 | |
| 67 | Logs the startup configuration and all subsequent CLI commands in filename. |
| 68 | Very useful in situations where folks don't remember or can't be bothered |
| 69 | to include CLI commands in bug reports. The default *'startup.conf'* file |
| 70 | is to write to *'/var/log/vpp/vpp.log'*. |
| 71 | |
| 72 | In VPP 18.04, the default log file location was moved from '/tmp/vpp.log' |
| 73 | to '/var/log/vpp/vpp.log' . The VPP code is indifferent to the file location. |
| 74 | However, if SELinux is enabled, then the new location is required for the file |
| 75 | to be properly labeled. Check your local *'startup.conf'* file for the log file |
| 76 | location on your system. |
| 77 | |
| 78 | .. code-block:: console |
| 79 | |
| 80 | log /var/log/vpp/vpp-debug.log |
| 81 | |
| 82 | exec | startup-config <filename> |
| 83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 84 | |
| 85 | Read startup operational configuration from filename. The contents of the file |
| 86 | will be performed as though entered at the CLI. The two keywords are aliases |
| 87 | for the same function; if both are specified, only the last will have an effect. |
| 88 | |
| 89 | A file of CLI commands might look like: |
| 90 | |
| 91 | .. code-block:: console |
| 92 | |
| 93 | $ cat /usr/share/vpp/scripts/interface-up.txt |
| 94 | set interface state TenGigabitEthernet1/0/0 up |
| 95 | set interface state TenGigabitEthernet1/0/1 up |
| 96 | |
| 97 | Parameter Example: |
| 98 | |
| 99 | .. code-block:: console |
| 100 | |
| 101 | startup-config /usr/share/vpp/scripts/interface-up.txt |
| 102 | |
| 103 | gid <number | name> |
| 104 | ^^^^^^^^^^^^^^^^^^^ |
| 105 | |
| 106 | Sets the effective group ID to the input group ID or group name of the calling |
| 107 | process. |
| 108 | |
| 109 | .. code-block:: console |
| 110 | |
| 111 | gid vpp |
| 112 | |
| 113 | full-coredump |
| 114 | ^^^^^^^^^^^^^ |
| 115 | |
| 116 | Ask the Linux kernel to dump all memory-mapped address regions, instead of |
| 117 | just text+data+bss. |
| 118 | |
| 119 | .. code-block:: console |
| 120 | |
| 121 | full-coredump |
| 122 | |
| 123 | coredump-size unlimited | <n>G | <n>M | <n>K | <n> |
| 124 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 125 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 126 | Set the maximum size of the coredump file. The input value can be set in |
| 127 | GB, MB, KB or bytes, or set to *'unlimited'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 128 | |
| 129 | .. code-block:: console |
| 130 | |
| 131 | coredump-size unlimited |
| 132 | |
| 133 | cli-listen <ipaddress:port> | <socket-path> |
| 134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 135 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 136 | Bind the CLI to listen at address localhost on TCP port 5002. This will |
| 137 | accept an ipaddress:port pair or a filesystem path; in the latter case a |
| 138 | local Unix socket is opened instead. The default *'startup.conf'* file |
| 139 | is to open the socket *'/run/vpp/cli.sock'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 140 | |
| 141 | .. code-block:: console |
| 142 | |
| 143 | cli-listen localhost:5002 |
| 144 | cli-listen /run/vpp/cli.sock |
| 145 | |
| 146 | cli-line-mode |
| 147 | ^^^^^^^^^^^^^ |
| 148 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 149 | Disable character-by-character I/O on stdin. Useful when combined with, |
| 150 | for example, emacs M-x gud-gdb. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 151 | |
| 152 | .. code-block:: console |
| 153 | |
| 154 | cli-line-mode |
| 155 | |
| 156 | cli-prompt <string> |
| 157 | ^^^^^^^^^^^^^^^^^^^ |
| 158 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 159 | Configure the CLI prompt to be string. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 160 | |
| 161 | .. code-block:: console |
| 162 | |
| 163 | cli-prompt vpp-2 |
| 164 | |
| 165 | cli-history-limit <n> |
| 166 | ^^^^^^^^^^^^^^^^^^^^^ |
| 167 | |
Paul Vinciguerra | 7fa3dd2 | 2019-10-27 17:28:10 -0400 | [diff] [blame] | 168 | Limit command history to <n> lines. A value of 0 disables command history. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 169 | Default value: 50 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 170 | |
| 171 | .. code-block:: console |
| 172 | |
| 173 | cli-history-limit 100 |
| 174 | |
| 175 | cli-no-banner |
| 176 | ^^^^^^^^^^^^^ |
| 177 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 178 | Disable the login banner on stdin and Telnet connections. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 179 | |
| 180 | .. code-block:: console |
| 181 | |
| 182 | cli-no-banner |
| 183 | |
| 184 | cli-no-pager |
| 185 | ^^^^^^^^^^^^ |
| 186 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 187 | Disable the output pager. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 188 | |
| 189 | .. code-block:: console |
| 190 | |
| 191 | cli-no-pager |
| 192 | |
| 193 | cli-pager-buffer-limit <n> |
| 194 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 195 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 196 | Limit pager buffer to <n> lines of output. A value of 0 disables the |
| 197 | pager. Default value: 100000 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 198 | |
| 199 | .. code-block:: console |
| 200 | |
| 201 | cli-pager-buffer-limit 5000 |
| 202 | |
| 203 | runtime-dir <dir> |
| 204 | ^^^^^^^^^^^^^^^^^ |
| 205 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 206 | Set the runtime directory, which is the default location for certain |
| 207 | files, like socket files. Default is based on User ID used to start VPP. |
| 208 | Typically it is *'root'*, which defaults to *'/run/vpp/'*. Otherwise, |
| 209 | defaults to *'/run/user/<uid>/vpp/'*. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 210 | |
| 211 | .. code-block:: console |
| 212 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 213 | runtime-dir /tmp/vpp |
| 214 | |
| 215 | poll-sleep-usec <n> |
| 216 | ^^^^^^^^^^^^^^^^^^^ |
| 217 | |
| 218 | Add a fixed-sleep between main loop poll. Default is 0, which is not to |
| 219 | sleep. |
| 220 | |
| 221 | .. code-block:: console |
| 222 | |
| 223 | poll-sleep-usec 100 |
| 224 | |
| 225 | pidfile <filename> |
| 226 | ^^^^^^^^^^^^^^^^^^ |
| 227 | |
| 228 | Writes the pid of the main thread in the given filename. |
| 229 | |
| 230 | .. code-block:: console |
| 231 | |
| 232 | pidfile /run/vpp/vpp1.pid |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 233 | |
| 234 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 235 | The api-trace Section |
| 236 | --------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 237 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 238 | The ability to trace, dump, and replay control-plane API traces makes all the |
| 239 | difference in the world when trying to understand what the control-plane has |
| 240 | tried to ask the forwarding-plane to do. |
| 241 | |
| 242 | Typically, one simply enables the API message trace scheme: |
| 243 | |
| 244 | .. code-block:: console |
| 245 | |
| 246 | api-trace { |
| 247 | api-trace on |
| 248 | } |
| 249 | |
| 250 | on | enable |
| 251 | ^^^^^^^^^^^ |
| 252 | |
| 253 | Enable API trace capture from the beginning of time, and arrange for a |
| 254 | post-mortem dump of the API trace if the application terminates abnormally. |
| 255 | By default, the (circular) trace buffer will be configured to capture |
| 256 | 256K traces. The default *'startup.conf'* file has trace enabled by default, |
| 257 | and unless there is a very strong reason, it should remain enabled. |
| 258 | |
| 259 | .. code-block:: console |
| 260 | |
| 261 | on |
| 262 | |
| 263 | nitems <n> |
| 264 | ^^^^^^^^^^ |
| 265 | |
| 266 | Configure the circular trace buffer to contain the last <n> entries. By |
| 267 | default, the trace buffer captures the last 256K API messages received. |
| 268 | |
| 269 | .. code-block:: console |
| 270 | |
| 271 | nitems 524288 |
| 272 | |
| 273 | save-api-table <filename> |
| 274 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 275 | |
| 276 | Dumps the API message table to /tmp/<filename>. |
| 277 | |
| 278 | .. code-block:: console |
| 279 | |
| 280 | save-api-table apiTrace-07-04.txt |
| 281 | |
| 282 | |
| 283 | The api-segment Section |
| 284 | ----------------------- |
| 285 | |
| 286 | These values control various aspects of the binary API interface to VPP. |
| 287 | |
| 288 | The default looks like the following: |
| 289 | |
| 290 | .. code-block:: console |
| 291 | |
| 292 | api-segment { |
| 293 | gid vpp |
| 294 | } |
| 295 | |
| 296 | |
| 297 | prefix <path> |
| 298 | ^^^^^^^^^^^^^ |
| 299 | |
| 300 | Sets the prefix prepended to the name used for shared memory (SHM) |
| 301 | segments. The default is empty, meaning shared memory segments are created |
| 302 | directly in the SHM directory *'/dev/shm'*. It is worth noting that on |
| 303 | many systems *'/dev/shm'* is a symbolic link to somewhere else in the file |
| 304 | system; Ubuntu links it to *'/run/shm'*. |
| 305 | |
| 306 | .. code-block:: console |
| 307 | |
| 308 | prefix /run/shm |
| 309 | |
| 310 | uid <number | name> |
| 311 | ^^^^^^^^^^^^^^^^^^^ |
| 312 | |
| 313 | Sets the user ID or name that should be used to set the ownership of the |
| 314 | shared memory segments. Defaults to the same user that VPP is started |
| 315 | with, probably root. |
| 316 | |
| 317 | .. code-block:: console |
| 318 | |
| 319 | uid root |
| 320 | |
| 321 | gid <number | name> |
| 322 | ^^^^^^^^^^^^^^^^^^^ |
| 323 | |
| 324 | Sets the group ID or name that should be used to set the ownership of the |
| 325 | shared memory segments. Defaults to the same group that VPP is started |
| 326 | with, probably root. |
| 327 | |
| 328 | .. code-block:: console |
| 329 | |
| 330 | gid vpp |
| 331 | |
| 332 | **The following parameters should only be set by those that are familiar with the |
| 333 | interworkings of VPP.** |
| 334 | |
| 335 | baseva <x> |
| 336 | ^^^^^^^^^^ |
| 337 | |
| 338 | Set the base address for SVM global region. If not set, on AArch64, the |
| 339 | code will try to determine the base address. All other default to |
| 340 | 0x30000000. |
| 341 | |
| 342 | .. code-block:: console |
| 343 | |
| 344 | baseva 0x20000000 |
| 345 | |
| 346 | global-size <n>G | <n>M | <n> |
| 347 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 348 | |
| 349 | Set the global memory size, memory shared across all router instances, |
| 350 | packet buffers, etc. If not set, defaults to 64M. The input value can be |
| 351 | set in GB, MB or bytes. |
| 352 | |
| 353 | .. code-block:: console |
| 354 | |
| 355 | global-size 2G |
| 356 | |
| 357 | global-pvt-heap-size <n>M | size <n> |
| 358 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 359 | |
| 360 | Set the size of the global VM private mheap. If not set, defaults to 128k. |
| 361 | The input value can be set in MB or bytes. |
| 362 | |
| 363 | .. code-block:: console |
| 364 | |
| 365 | global-pvt-heap-size size 262144 |
| 366 | |
| 367 | api-pvt-heap-size <n>M | size <n> |
| 368 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 369 | |
| 370 | Set the size of the api private mheap. If not set, defaults to 128k. |
| 371 | The input value can be set in MB or bytes. |
| 372 | |
| 373 | .. code-block:: console |
| 374 | |
| 375 | api-pvt-heap-size 1M |
| 376 | |
| 377 | api-size <n>M | <n>G | <n> |
| 378 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 379 | |
| 380 | Set the size of the API region. If not set, defaults to 16M. The input |
| 381 | value can be set in GB, MB or bytes. |
| 382 | |
| 383 | .. code-block:: console |
| 384 | |
| 385 | api-size 64M |
| 386 | |
| 387 | The socksvr Section |
| 388 | ------------------- |
| 389 | |
| 390 | Enables a Unix domain socket which processes binary API messages. See |
| 391 | .../vlibmemory/socket_api.c. If this parameter is not set, vpp |
| 392 | won't process binary API messages over sockets. |
| 393 | |
| 394 | .. code-block:: console |
| 395 | |
| 396 | socksvr { |
| 397 | # Explicitly name a socket file |
| 398 | socket-name /run/vpp/api.sock |
| 399 | or |
| 400 | # Use defaults as described below |
| 401 | default |
| 402 | } |
| 403 | |
| 404 | The "default" keyword instructs vpp to use /run/vpp/api.sock when |
| 405 | running as root, otherwise to use /run/user/<uid>/api.sock. |
| 406 | |
| 407 | The cpu Section |
| 408 | --------------- |
| 409 | |
| 410 | In the VPP there is one main thread and optionally the user can create worker(s) |
| 411 | The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically |
| 412 | |
| 413 | .. code-block:: console |
| 414 | |
| 415 | cpu { |
| 416 | main-core 1 |
| 417 | corelist-workers 2-3,18-19 |
| 418 | } |
| 419 | |
| 420 | |
| 421 | Manual pinning of thread(s) to CPU core(s) |
| 422 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 423 | |
| 424 | main-core |
| 425 | ^^^^^^^^^ |
| 426 | |
| 427 | Set logical CPU core where main thread runs, if main core is not set VPP will use |
| 428 | core 1 if available |
| 429 | |
| 430 | .. code-block:: console |
| 431 | |
| 432 | main-core 1 |
| 433 | |
| 434 | corelist-workers |
| 435 | ^^^^^^^^^^^^^^^^ |
| 436 | |
| 437 | Set logical CPU core(s) where worker threads are running |
| 438 | |
| 439 | .. code-block:: console |
| 440 | |
| 441 | corelist-workers 2-3,18-19 |
| 442 | |
| 443 | Automatic pinning of thread(s) to CPU core(s) |
| 444 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 445 | |
| 446 | skip-cores number |
| 447 | ^^^^^^^^^^^^^^^^^ |
| 448 | |
| 449 | Sets number of CPU core(s) to be skipped (1 ... N-1), Skipped CPU core(s) are |
| 450 | not used for pinning main thread and working thread(s). |
| 451 | |
| 452 | The main thread is automatically pinned to the first available CPU core and worker(s) |
| 453 | are pinned to next free CPU core(s) after core assigned to main thread |
| 454 | |
| 455 | .. code-block:: console |
| 456 | |
| 457 | skip-cores 4 |
| 458 | |
| 459 | workers number |
| 460 | ^^^^^^^^^^^^^^ |
| 461 | |
| 462 | Specify a number of workers to be created Workers are pinned to N consecutive |
| 463 | CPU cores while skipping "skip-cores" CPU core(s) and main thread's CPU core |
| 464 | |
| 465 | .. code-block:: console |
| 466 | |
| 467 | workers 2 |
| 468 | |
| 469 | scheduler-policy other | batch | idle | fifo | rr |
| 470 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 471 | |
| 472 | Set scheduling policy and priority of main and worker threads |
| 473 | |
| 474 | Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH) |
| 475 | idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR) |
| 476 | |
| 477 | .. code-block:: console |
| 478 | |
| 479 | scheduler-policy fifo |
| 480 | |
| 481 | scheduler-priority number |
| 482 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 483 | |
| 484 | Scheduling priority is used only for "real-time policies (fifo and rr), |
| 485 | and has to be in the range of priorities supported for a particular policy |
| 486 | |
| 487 | .. code-block:: console |
| 488 | |
| 489 | scheduler-priority 50 |
| 490 | |
| 491 | The buffers Section |
| 492 | ------------------- |
| 493 | |
| 494 | .. code-block:: console |
| 495 | |
| 496 | buffers { |
| 497 | buffers-per-numa 128000 |
| 498 | default data-size 2048 |
Nathan Skrzypczak | 6155902 | 2020-11-23 16:25:21 +0100 | [diff] [blame] | 499 | page-size default-hugepage |
Lukas Stockner | 63ff7a6 | 2024-06-04 16:14:55 +0200 | [diff] [blame] | 500 | numa 1 { |
| 501 | buffers 64000 |
| 502 | } |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 503 | } |
| 504 | |
| 505 | buffers-per-numa number |
| 506 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 507 | |
| 508 | Increase number of buffers allocated, needed only in scenarios with |
| 509 | large number of interfaces and worker threads. Value is per numa node. |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 510 | Default is 16384 (8192 if running unprivileged) |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 511 | |
| 512 | .. code-block:: console |
| 513 | |
| 514 | buffers-per-numa 128000 |
| 515 | |
| 516 | default data-size number |
| 517 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 518 | |
| 519 | Size of buffer data area, default is 2048 |
| 520 | |
| 521 | .. code-block:: console |
| 522 | |
| 523 | default data-size 2048 |
| 524 | |
Nathan Skrzypczak | 6155902 | 2020-11-23 16:25:21 +0100 | [diff] [blame] | 525 | page-size number |
| 526 | ^^^^^^^^^^^^^^^^ |
| 527 | |
| 528 | Set the page size for buffer allocation |
| 529 | |
| 530 | .. code-block:: console |
| 531 | |
| 532 | page-size 4K |
| 533 | page-size 2M |
| 534 | page-size 1G |
| 535 | page-size default |
| 536 | page-size default-hugepage |
| 537 | |
Lukas Stockner | 63ff7a6 | 2024-06-04 16:14:55 +0200 | [diff] [blame] | 538 | numa <numa index> { .. } |
| 539 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 540 | |
| 541 | Settings specific to a single NUMA domain. |
| 542 | |
| 543 | .. code-block:: console |
| 544 | |
| 545 | buffers { |
| 546 | numa 0 { |
| 547 | buffers 32768 |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | buffers <n> |
| 552 | ^^^^^^^^^^^^^^^ |
| 553 | |
| 554 | The number of buffers allocated for this specific NUMA domain. |
| 555 | Default is 0, which falls back to the value configured in **buffers-per-numa**. |
| 556 | |
| 557 | .. code-block:: console |
| 558 | |
| 559 | numa 0 { |
| 560 | buffers 32768 |
| 561 | } |
| 562 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 563 | |
| 564 | The dpdk Section |
| 565 | ---------------- |
| 566 | |
| 567 | .. code-block:: console |
| 568 | |
| 569 | dpdk { |
| 570 | dev default { |
| 571 | num-rx-desc 512 |
| 572 | num-tx-desc 512 |
| 573 | } |
| 574 | |
| 575 | dev 0000:02:00.1 { |
| 576 | num-rx-queues 2 |
| 577 | name eth0 |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | dev <pci-dev> | default { .. } |
| 582 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 583 | |
| 584 | White-list [as in, attempt to drive] a specific PCI device. PCI-dev is a |
| 585 | string of the form "DDDD:BB:SS.F" where: |
| 586 | |
| 587 | * DDDD = Domain |
| 588 | * BB = Bus Number |
| 589 | * SS = Slot number |
| 590 | * F = Function |
| 591 | |
Paul Vinciguerra | 5ac392d | 2020-03-01 01:37:37 -0500 | [diff] [blame] | 592 | If the keyword **default** is used the values will apply to all the devices. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 593 | |
| 594 | This is the same format used in the linux sysfs tree (i.e./sys/bus/pci/devices) |
| 595 | for PCI device directory names. |
| 596 | |
| 597 | .. code-block:: console |
| 598 | |
| 599 | dpdk { |
| 600 | dev default { |
| 601 | num-rx-desc 512 |
| 602 | num-tx-desc 512 |
| 603 | } |
| 604 | |
| 605 | dev <pci-dev> { .. } |
| 606 | ^^^^^^^^^^^^^^^^^^^^ |
| 607 | |
| 608 | Whitelist specific interface by specifying PCI address. When whitelisting specific |
| 609 | interfaces by specifying PCI address, additional custom parameters can also be |
| 610 | specified. Valid options include: |
| 611 | |
| 612 | .. code-block:: console |
| 613 | |
| 614 | dev 0000:02:00.0 |
| 615 | dev 0000:03:00.0 |
| 616 | |
| 617 | blacklist <pci-dev> |
| 618 | ^^^^^^^^^^^^^^^^^^^ |
| 619 | |
| 620 | Blacklist specific device type by specifying PCI vendor:device Whitelist entries |
| 621 | take precedence |
| 622 | |
| 623 | .. code-block:: console |
| 624 | |
| 625 | blacklist 8086:10fb |
| 626 | |
| 627 | name interface-name |
| 628 | ^^^^^^^^^^^^^^^^^^^ |
| 629 | |
| 630 | Set interface name |
| 631 | |
| 632 | .. code-block:: console |
| 633 | |
| 634 | dev 0000:02:00.1 { |
| 635 | name eth0 |
| 636 | } |
| 637 | |
| 638 | num-rx-queues <n> |
| 639 | ^^^^^^^^^^^^^^^^^ |
| 640 | |
| 641 | Number of receive queues. Also enables RSS. Default value is 1. |
| 642 | |
| 643 | .. code-block:: console |
| 644 | |
| 645 | dev 0000:02:00.1 { |
Paul Vinciguerra | 5ac392d | 2020-03-01 01:37:37 -0500 | [diff] [blame] | 646 | num-rx-queues <n> |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 647 | } |
| 648 | |
| 649 | num-tx-queues <n> |
| 650 | ^^^^^^^^^^^^^^^^^ |
| 651 | |
| 652 | Number of transmit queues. Default is equal to number of worker threads |
| 653 | or 1 if no workers treads. |
| 654 | |
| 655 | .. code-block:: console |
| 656 | |
| 657 | dev 000:02:00.1 { |
| 658 | num-tx-queues <n> |
| 659 | } |
| 660 | |
| 661 | num-rx-desc <n> |
| 662 | ^^^^^^^^^^^^^^^ |
| 663 | |
| 664 | Number of descriptors in receive ring. Increasing or reducing number |
| 665 | can impact performance. Default is 1024. |
| 666 | |
| 667 | .. code-block:: console |
| 668 | |
| 669 | dev 000:02:00.1 { |
| 670 | num-rx-desc <n> |
| 671 | } |
| 672 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 673 | uio-driver driver-name |
| 674 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 675 | |
| 676 | Change UIO driver used by VPP, Options are: igb_uio, vfio-pci, uio_pci_generic |
| 677 | or auto (default) |
| 678 | |
| 679 | |
| 680 | .. code-block:: console |
| 681 | |
| 682 | uio-driver vfio-pci |
| 683 | |
Benoît Ganne | 6a07348 | 2022-10-13 17:22:26 +0200 | [diff] [blame] | 684 | uio-bind-force |
| 685 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 686 | |
| 687 | Force VPP to rebind the interface(s) to the selected UIO driver, even if the |
| 688 | interface is up in Linux. |
| 689 | By default, VPP will refuse to bind an interface if it is up in Linux, |
| 690 | in case it is in active use. |
| 691 | |
| 692 | .. code-block:: console |
| 693 | |
| 694 | uio-bind-force |
| 695 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 696 | no-multi-seg |
| 697 | ^^^^^^^^^^^^ |
| 698 | |
| 699 | Disable multi-segment buffers, improves performance but disables Jumbo MTU support |
| 700 | |
| 701 | .. code-block:: console |
| 702 | |
| 703 | no-multi-seg |
| 704 | |
| 705 | socket-mem <n> |
| 706 | ^^^^^^^^^^^^^^ |
| 707 | |
| 708 | Change hugepages allocation per-socket, needed only if there is need for |
| 709 | larger number of mbufs. Default is 256M on each detected CPU socket |
| 710 | |
| 711 | .. code-block:: console |
| 712 | |
| 713 | socket-mem 2048,2048 |
| 714 | |
| 715 | no-tx-checksum-offload |
| 716 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 717 | |
| 718 | Disables UDP / TCP TX checksum offload. Typically needed for use faster |
| 719 | vector PMDs (together with no-multi-seg) |
| 720 | |
| 721 | .. code-block:: console |
| 722 | |
| 723 | no-tx-checksum-offload |
| 724 | |
| 725 | enable-tcp-udp-checksum |
| 726 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 727 | |
| 728 | Enable UDP / TCP TX checksum offload This is the reversed option of |
| 729 | 'no-tx-checksum-offload' |
| 730 | |
| 731 | .. code-block:: console |
| 732 | |
| 733 | enable-tcp-udp-checksum |
| 734 | |
| 735 | The plugins Section |
| 736 | ------------------- |
| 737 | |
| 738 | Configure VPP plugins. |
| 739 | |
| 740 | .. code-block:: console |
| 741 | |
| 742 | plugins { |
| 743 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 744 | plugin dpdk_plugin.so enable |
| 745 | } |
| 746 | |
| 747 | path pathname |
| 748 | ^^^^^^^^^^^^^ |
| 749 | |
| 750 | Adjust the plugin path depending on where the VPP plugins are. |
| 751 | |
| 752 | .. code-block:: console |
| 753 | |
| 754 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 755 | |
| 756 | plugin plugin-name | default enable | disable |
| 757 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 758 | |
| 759 | Disable all plugins by default and then selectively enable specific plugins |
| 760 | |
| 761 | .. code-block:: console |
| 762 | |
| 763 | plugin default disable |
| 764 | plugin dpdk_plugin.so enable |
| 765 | plugin acl_plugin.so enable |
| 766 | |
| 767 | Enable all plugins by default and then selectively disable specific plugins |
| 768 | |
| 769 | .. code-block:: console |
| 770 | |
| 771 | plugin dpdk_plugin.so disable |
| 772 | plugin acl_plugin.so disable |
| 773 | |
| 774 | Th statseg Section |
| 775 | ^^^^^^^^^^^^^^^^^^ |
| 776 | |
| 777 | .. code-block:: console |
| 778 | |
| 779 | statseg { |
| 780 | per-node-counters on |
| 781 | } |
| 782 | |
| 783 | socket-name <filename> |
| 784 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 785 | |
| 786 | Name of the stats segment socket defaults to /run/vpp/stats.sock. |
| 787 | |
| 788 | .. code-block:: console |
| 789 | |
| 790 | socket-name /run/vpp/stats.sock |
| 791 | |
| 792 | size <nnn>[KMG] |
| 793 | ^^^^^^^^^^^^^^^ |
| 794 | |
| 795 | The size of the stats segment, defaults to 32mb |
| 796 | |
| 797 | .. code-block:: console |
| 798 | |
| 799 | size 1024M |
| 800 | |
| 801 | per-node-counters on | off |
| 802 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 803 | |
| 804 | Defaults to none |
| 805 | |
| 806 | .. code-block:: console |
| 807 | |
| 808 | per-node-counters on |
| 809 | |
| 810 | update-interval <f64-seconds> |
| 811 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 812 | |
| 813 | Sets the segment scrape / update interval |
| 814 | |
| 815 | .. code-block:: console |
| 816 | |
| 817 | update-interval 300 |
| 818 | |
| 819 | |
| 820 | Some Advanced Parameters: |
| 821 | ------------------------- |
| 822 | |
| 823 | |
| 824 | acl-plugin Section |
| 825 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 826 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 827 | These parameters change the configuration of the ACL (access control list) plugin, |
| 828 | such as how the ACL bi-hash tables are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 829 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 830 | They should only be set by those that are familiar with the interworkings of VPP |
| 831 | and the ACL Plugin. |
| 832 | |
| 833 | The first three parameters, *connection hash buckets*, *connection hash memory*, |
| 834 | and *connection count max*, set the **connection table per-interface parameters** |
| 835 | for modifying how the two bounded-index extensible hash tables for |
| 836 | IPv6 (40\*8 bit key and 8\*8 bit value pairs) and IPv4 |
| 837 | (16\*8 bit key and 8\*8 bit value pairs) **ACL plugin FA interface sessions** |
| 838 | are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 839 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 840 | connection hash buckets <n> |
| 841 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 842 | |
| 843 | Sets the number of hash buckets (rounded up to a power of 2) in each |
| 844 | of the two bi-hash tables. Defaults to 64\*1024 (65536) hash buckets. |
| 845 | |
| 846 | .. code-block:: console |
| 847 | |
| 848 | connection hash buckets 65536 |
| 849 | |
| 850 | connection hash memory <n> |
| 851 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 852 | |
| 853 | Sets the allocated memory size (in bytes) for each of the two bi-hash tables. |
| 854 | Defaults to 1073741824 bytes. |
| 855 | |
| 856 | .. code-block:: console |
| 857 | |
| 858 | connection hash memory 1073741824 |
| 859 | |
| 860 | connection count max <n> |
| 861 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 862 | |
| 863 | Sets the maximum number of pool elements when allocating each per-worker |
| 864 | pool of sessions for both bi-hash tables. Defaults to 500000 elements in each pool. |
| 865 | |
| 866 | .. code-block:: console |
| 867 | |
| 868 | connection count max 500000 |
| 869 | |
| 870 | main heap size <n>G | <n>M | <n>K | <n> |
| 871 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 872 | |
| 873 | Sets the size of the main memory heap that holds all the ACL module related |
| 874 | allocations (other than hash.) Default size is 0, but during |
| 875 | ACL heap initialization is equal to |
| 876 | *per_worker_size_with_slack * tm->n_vlib_mains + bihash_size + main_slack*. |
| 877 | Note that these variables are partially based on the |
| 878 | **connection table per-interface parameters** mentioned above. |
| 879 | |
| 880 | .. code-block:: console |
| 881 | |
| 882 | main heap size 3G |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 883 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 884 | The next three parameters, *hash lookup heap size*, *hash lookup hash buckets*, |
| 885 | and *hash lookup hash memory*, modify the initialization of the bi-hash lookup |
| 886 | table used by the ACL plugin. This table is initialized when attempting to apply |
| 887 | an ACL to the existing vector of ACLs looked up during packet processing |
| 888 | (but it is found that the table does not exist / has not been initialized yet.) |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 889 | |
| 890 | hash lookup heap size <n>G | <n>M | <n> K | <n> |
| 891 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 892 | |
| 893 | Sets the size of the memory heap that holds all the miscellaneous allocations |
| 894 | related to hash-based lookups. Default size is 67108864 bytes. |
| 895 | |
| 896 | .. code-block:: console |
| 897 | |
| 898 | hash lookup heap size 70M |
| 899 | |
| 900 | hash lookup hash buckets <n> |
| 901 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 902 | |
| 903 | Sets the number of hash buckets (rounded up to a power of 2) in the bi-hash |
| 904 | lookup table. Defaults to 65536 hash buckets. |
| 905 | |
| 906 | .. code-block:: console |
| 907 | |
| 908 | hash lookup hash buckets 65536 |
| 909 | |
| 910 | hash lookup hash memory <n> |
| 911 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 912 | |
| 913 | Sets the allocated memory size (in bytes) for the bi-hash lookup table. |
| 914 | Defaults to 67108864 bytes. |
| 915 | |
| 916 | .. code-block:: console |
| 917 | |
| 918 | hash lookup hash memory 67108864 |
| 919 | |
| 920 | use tuple merge <n> |
| 921 | ^^^^^^^^^^^^^^^^^^^ |
| 922 | |
| 923 | Sets a boolean value indicating whether or not to use TupleMerge |
| 924 | for hash ACL's. Defaults to 1 (true), meaning the default implementation |
| 925 | of hashing ACL's does use TupleMerge. |
| 926 | |
| 927 | .. code-block:: console |
| 928 | |
| 929 | use tuple merge 1 |
| 930 | |
| 931 | tuple merge split threshold <n> |
| 932 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 933 | |
| 934 | Sets the maximum amount of rules (ACE's) that can collide in a bi-hash |
| 935 | lookup table before the table is split into two new tables. Splitting ensures |
| 936 | less rule collisions by hashing colliding rules based on their common tuple |
| 937 | (usually their maximum common tuple.) Splitting occurs when the |
| 938 | *length of the colliding rules vector* is greater than this threshold amount. |
| 939 | Defaults to a maximum of 39 rule collisions per table. |
| 940 | |
| 941 | .. code-block:: console |
| 942 | |
| 943 | tuple merge split threshold 30 |
| 944 | |
| 945 | reclassify sessions <n> |
| 946 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 947 | |
| 948 | Sets a boolean value indicating whether or not to take the epoch of the session |
| 949 | into account when dealing with re-applying ACL's or changing already applied ACL's. |
| 950 | Defaults to 0 (false), meaning the default implementation does NOT take the |
| 951 | epoch of the session into account. |
| 952 | |
| 953 | .. code-block:: console |
| 954 | |
| 955 | reclassify sessions 1 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 956 | |
| 957 | .. _api-queue: |
| 958 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 959 | api-queue Section |
| 960 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 961 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 962 | length <n> |
| 963 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 964 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 965 | Sets the api queue length. Minimum valid queue length is 1024, which is |
| 966 | also the default. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 967 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 968 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 969 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 970 | length 2048 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 971 | |
| 972 | .. _cj: |
| 973 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 974 | cj Section |
| 975 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 976 | |
| 977 | The circular journal (CJ) thread-safe circular log buffer scheme is |
| 978 | occasionally useful when chasing bugs. Calls to it should not be checked in. |
| 979 | See .../vlib/vlib/unix/cj.c. The circular journal is disables by default. |
| 980 | When enabled, the number of records must be provided, there is no default |
| 981 | value. |
| 982 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 983 | records <n> |
| 984 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 985 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 986 | Configure the number of circular journal records in the circular buffer. |
| 987 | The number of records should be a power of 2. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 988 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 989 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 990 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 991 | records 131072 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 992 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 993 | on |
| 994 | ^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 995 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 996 | Turns on logging at the earliest possible moment. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 997 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 998 | .. code-block:: console |
| 999 | |
| 1000 | on |
| 1001 | |
| 1002 | dns Section |
| 1003 | ----------- |
| 1004 | |
| 1005 | max-cache-size <n> |
| 1006 | ^^^^^^^^^^^^^^^^^^ |
| 1007 | |
| 1008 | Set the maximum number of active elements allowed in the pool of |
| 1009 | dns cache entries. When resolving an expired entry or adding a new |
| 1010 | static entry and the max number of active entries is reached, |
| 1011 | a random, non-static entry is deleted. Defaults to 65535 entries. |
| 1012 | |
| 1013 | .. code-block:: console |
| 1014 | |
| 1015 | max-cache-size 65535 |
| 1016 | |
Paul Vinciguerra | 491741a | 2020-03-02 16:10:54 -0500 | [diff] [blame] | 1017 | |
| 1018 | ethernet Section |
| 1019 | ----------------- |
| 1020 | |
| 1021 | default-mtu <n> |
| 1022 | ^^^^^^^^^^^^^^^ |
| 1023 | |
| 1024 | Specifies the default MTU size for Ethernet interfaces. Must be in |
| 1025 | the range of 64-9000. The default is 9000. |
| 1026 | |
| 1027 | .. code-block:: console |
| 1028 | |
| 1029 | default-mtu 1500 |
| 1030 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1031 | heapsize Section |
| 1032 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1033 | |
| 1034 | Heapsize configuration controls the size of the main heap. The heap size is |
| 1035 | configured very early in the boot sequence, before loading plug-ins or doing |
| 1036 | much of anything else. |
| 1037 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1038 | heapsize <n>M | <n>G |
| 1039 | ^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1040 | |
Dave Barach | 2fef3df | 2020-02-21 17:31:17 -0500 | [diff] [blame] | 1041 | Specifies the size of the heap in MB or GB. The default is 1GB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1042 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1043 | .. code-block:: console |
| 1044 | |
| 1045 | heapsize 2G |
| 1046 | |
| 1047 | ip Section |
| 1048 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1049 | |
| 1050 | IPv4 heap configuration. he heap size is configured very early in the boot |
| 1051 | sequence, before loading plug-ins or doing much of anything else. |
| 1052 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1053 | heap-size <n>G | <n>M | <n>K | <n> |
| 1054 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1055 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1056 | Set the IPv4 mtrie heap size, which is the amount of memory dedicated to |
| 1057 | the destination IP lookup table. The input value can be set in GB, MB, KB |
| 1058 | or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1059 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1060 | .. code-block:: console |
| 1061 | |
| 1062 | heap-size 64M |
| 1063 | |
| 1064 | ip6 Section |
| 1065 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1066 | |
| 1067 | IPv6 heap configuration. he heap size is configured very early in the boot |
| 1068 | sequence, before loading plug-ins or doing much of anything else. |
| 1069 | |
| 1070 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1071 | heap-size <n>G | <n>M | <n>K | <n> |
| 1072 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1073 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1074 | Set the IPv6 forwarding table heap size. The input value can be set in GB, |
| 1075 | MB, KB or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1076 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1077 | .. code-block:: console |
| 1078 | |
| 1079 | heap-size 64M |
| 1080 | |
| 1081 | hash-buckets <n> |
| 1082 | ^^^^^^^^^^^^^^^^ |
| 1083 | |
| 1084 | Set the number of IPv6 forwarding table hash buckets. The default value is |
| 1085 | 64K (65536). |
| 1086 | |
| 1087 | .. code-block:: console |
| 1088 | |
| 1089 | hash-buckets 131072 |
| 1090 | |
| 1091 | l2learn Section |
| 1092 | --------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1093 | |
| 1094 | Configure Layer 2 MAC Address learning parameters. |
| 1095 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1096 | limit <n> |
| 1097 | ^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1098 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1099 | Configures the number of L2 (MAC) addresses in the L2 FIB at any one time, |
| 1100 | which limits the size of the L2 FIB to <n> concurrent entries. Defaults to |
| 1101 | 4M entries (4194304). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1102 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1103 | .. code-block:: console |
| 1104 | |
| 1105 | limit 8388608 |
| 1106 | |
| 1107 | l2tp Section |
| 1108 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1109 | |
| 1110 | IPv6 Layer 2 Tunnelling Protocol Version 3 (IPv6-L2TPv3) configuration controls |
| 1111 | the method used to locate a specific IPv6-L2TPv3 tunnel. The following settings |
| 1112 | are mutually exclusive: |
| 1113 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1114 | lookup-v6-src |
| 1115 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1116 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1117 | Lookup tunnel by IPv6 source address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1118 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1119 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1120 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1121 | lookup-v6-src |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1122 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1123 | lookup-v6-dst |
| 1124 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1125 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1126 | Lookup tunnel by IPv6 destination address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1127 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1128 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1129 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1130 | lookup-v6-dst |
| 1131 | |
| 1132 | lookup-session-id |
| 1133 | ^^^^^^^^^^^^^^^^^ |
| 1134 | |
| 1135 | Lookup tunnel by L2TPv3 session identifier. |
| 1136 | |
| 1137 | .. code-block:: console |
| 1138 | |
| 1139 | lookup-session-id |
| 1140 | |
| 1141 | logging Section |
| 1142 | --------------- |
| 1143 | |
| 1144 | size <n> |
| 1145 | ^^^^^^^^ |
| 1146 | |
| 1147 | Number of entries in the global logging buffer. Defaults to 512. |
| 1148 | |
| 1149 | .. code-block:: console |
| 1150 | |
| 1151 | size 512 |
| 1152 | |
| 1153 | nthrottle-time <n> |
| 1154 | ^^^^^^^^^^^^^^^^^^ |
| 1155 | |
| 1156 | Set the global value for the time to wait (in seconds) before resuming |
| 1157 | logging of a log subclass that exceeded the per-subclass message-per-second |
| 1158 | threshold. Defaults to 3. |
| 1159 | |
| 1160 | .. code-block:: console |
| 1161 | |
| 1162 | unthrottle-time 3 |
| 1163 | |
| 1164 | default-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1166 | |
| 1167 | Set the default logging level of the system log. Defaults to notice. |
| 1168 | |
| 1169 | .. code-block:: console |
| 1170 | |
| 1171 | default-log-level notice |
| 1172 | |
| 1173 | default-syslog-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1174 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1175 | |
| 1176 | Set the default logging level of the syslog target. Defaults to warning. |
| 1177 | |
| 1178 | .. code-block:: console |
| 1179 | |
| 1180 | default-syslog-log-level warning |
| 1181 | |
| 1182 | mactime Section |
| 1183 | --------------- |
| 1184 | |
| 1185 | lookup-table-buckets <n> |
| 1186 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1187 | |
| 1188 | Sets the number of hash buckets in the mactime bi-hash lookup table. |
| 1189 | Defaults to 128 buckets. |
| 1190 | |
| 1191 | .. code-block:: console |
| 1192 | |
| 1193 | lookup-table-buckets 128 |
| 1194 | |
| 1195 | lookup-table-memory <n>G | <n>M | <n>K | <n> |
| 1196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1197 | |
| 1198 | Sets the allocated memory size (in bytes) for the mactime bi-hash lookup table. |
| 1199 | The input value can be set in GB, MB, KB or bytes. The default value is 262144 |
| 1200 | (256 << 10) bytes or roughly 256KB. |
| 1201 | |
| 1202 | .. code-block:: console |
| 1203 | |
| 1204 | lookup-table-memory 300K |
| 1205 | |
| 1206 | timezone_offset <n> |
| 1207 | ^^^^^^^^^^^^^^^^^^^ |
| 1208 | |
| 1209 | Sets the timezone offset from UTC. Defaults to an offset of -5 hours |
| 1210 | from UTC (US EST / EDT.) |
| 1211 | |
| 1212 | .. code-block:: console |
| 1213 | |
| 1214 | timezone_offset -5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1215 | |
| 1216 | "map" Parameters |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1217 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1218 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1219 | customer edge |
| 1220 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1221 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1222 | Sets a boolean true to indicate that the MAP node is a Customer Edge (CE) |
| 1223 | router. The boolean defaults to false, meaning the MAP node is not treated |
| 1224 | as a CE router. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1225 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1226 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1227 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1228 | customer edge |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1229 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1230 | nat Section |
| 1231 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1232 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1233 | These parameters change the configuration of the NAT (Network address translation) |
| 1234 | plugin, such as how the NAT & NAT64 bi-hash tables are initialized, if the NAT is |
| 1235 | endpoint dependent, or if the NAT is deterministic. |
| 1236 | |
| 1237 | For each NAT per thread data, the following 4 parameters change how certain |
| 1238 | bi-hash tables are initialized. |
| 1239 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1240 | translation hash buckets <n> |
| 1241 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1242 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1243 | Sets the number of hash buckets in each of the two in/out NAT bi-hash lookup |
| 1244 | tables. Defaults to 1024 buckets. |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1245 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1246 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1247 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets |
| 1248 | the number of hash buckets in each of the two endpoint dependent sessions |
| 1249 | NAT bi-hash lookup tables. |
| 1250 | |
| 1251 | .. code-block:: console |
| 1252 | |
| 1253 | translation hash buckets 1024 |
| 1254 | |
| 1255 | translation hash memory <n> |
| 1256 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1257 | |
| 1258 | Sets the allocated memory size (in bytes) for each of the two in/out NAT |
| 1259 | bi-hash tables. Defaults to 134217728 (128 << 20) bytes, which is roughly 128 MB. |
| 1260 | |
| 1261 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1262 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets the |
| 1263 | allocated memory size for each of the two endpoint dependent sessions NAT bi-hash |
| 1264 | lookup tables. |
| 1265 | |
| 1266 | .. code-block:: console |
| 1267 | |
| 1268 | translation hash memory 134217728 |
| 1269 | |
| 1270 | user hash buckets <n> |
| 1271 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1272 | |
| 1273 | Sets the number of hash buckets in the user bi-hash lookup table |
| 1274 | (src address lookup for a user.) Defaults to 128 buckets. |
| 1275 | |
| 1276 | .. code-block:: console |
| 1277 | |
| 1278 | user hash buckets 128 |
| 1279 | |
| 1280 | user hash memory <n> |
| 1281 | ^^^^^^^^^^^^^^^^^^^^ |
| 1282 | |
| 1283 | Sets the allocated memory size (in bytes) for the user bi-hash lookup table |
| 1284 | (src address lookup for a user.) Defaults to 67108864 (64 << 20) bytes, |
| 1285 | which is roughly 64 MB. |
| 1286 | |
| 1287 | .. code-block:: console |
| 1288 | |
| 1289 | user hash memory 67108864 |
| 1290 | |
| 1291 | max translations per user <n> |
| 1292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1293 | |
| 1294 | Sets the maximum amount of dynamic and/or static NAT sessions each user can have. |
| 1295 | Defaults to 100. When this limit is reached, the least recently used translation |
| 1296 | is recycled. |
| 1297 | |
| 1298 | .. code-block:: console |
| 1299 | |
| 1300 | max translations per user 50 |
| 1301 | |
| 1302 | deterministic |
| 1303 | ^^^^^^^^^^^^^ |
| 1304 | |
| 1305 | Sets a boolean value to 1 indicating that the NAT is deterministic. Defaults to 0, |
| 1306 | meaning the NAT is not deterministic. |
| 1307 | |
| 1308 | .. code-block:: console |
| 1309 | |
| 1310 | deterministic |
| 1311 | |
| 1312 | nat64 bib hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1314 | |
| 1315 | Sets the number of hash buckets in each of the two in/out NAT64 BIB bi-hash |
| 1316 | tables. Defaults to 1024 buckets. |
| 1317 | |
| 1318 | .. code-block:: console |
| 1319 | |
| 1320 | nat64 bib hash buckets 1024 |
| 1321 | |
| 1322 | nat64 bib hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1323 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1324 | |
| 1325 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 |
| 1326 | BIB bi-hash tables. Defaults to 134217728 (128 << 20) bytes, |
| 1327 | which is roughly 128 MB. |
| 1328 | |
| 1329 | .. code-block:: console |
| 1330 | |
| 1331 | nat64 bib hash memory 134217728 |
| 1332 | |
| 1333 | nat64 st hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1334 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1335 | |
| 1336 | Sets the number of hash buckets in each of the two in/out NAT64 session table |
| 1337 | bi-hash tables. Defaults to 2048 buckets. |
| 1338 | |
| 1339 | .. code-block:: console |
| 1340 | |
| 1341 | nat64 st hash buckets 2048 |
| 1342 | |
| 1343 | nat64 st hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1344 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1345 | |
| 1346 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 session |
| 1347 | table bi-hash tables. Defaults to 268435456 (256 << 20) bytes, which is roughly |
| 1348 | 256 MB. |
| 1349 | |
| 1350 | .. code-block:: console |
| 1351 | |
| 1352 | nat64 st hash memory 268435456 |
| 1353 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1354 | .. _endpointLabel: |
| 1355 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1356 | endpoint-dependent |
| 1357 | ^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1358 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1359 | Sets a boolean value to 1, indicating that the NAT is endpoint dependent. |
| 1360 | Defaults to 0, meaning the NAT is not endpoint dependent. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1361 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1362 | .. code-block:: console |
| 1363 | |
| 1364 | endpoint-dependent |
| 1365 | |
| 1366 | oam Section |
| 1367 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1368 | |
| 1369 | OAM configuration controls the (ip4-icmp) interval, and number of misses |
| 1370 | allowed before reporting an oam target down to any registered listener. |
| 1371 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1372 | interval <n.n> |
| 1373 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1374 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1375 | Interval, floating-point seconds, between sending OAM IPv4 ICMP messages. |
| 1376 | Default is 2.04 seconds. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1377 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1378 | .. code-block:: console |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1379 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1380 | interval 3.5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1381 | |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1382 | physmem Section |
| 1383 | --------------- |
| 1384 | |
| 1385 | Configuration parameters used to specify base address and maximum size of |
| 1386 | the memory allocated for the pmalloc module in VPP. pmalloc is a NUMA-aware, |
| 1387 | growable physical memory allocator. pmalloc allocates memory for the DPDK |
| 1388 | memory pool. |
| 1389 | |
| 1390 | base-addr <address> |
| 1391 | ^^^^^^^^^^^^^^^^^^^ |
| 1392 | |
| 1393 | Specify the base address for pmalloc memory space. |
| 1394 | |
| 1395 | .. code-block:: console |
| 1396 | |
| 1397 | base-addr 0xfffe00000000 |
| 1398 | |
| 1399 | max-size <n>G | <n>M | <n>K | <n> |
| 1400 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1401 | |
| 1402 | Set the memory size for pmalloc memory space. The default is 16G. |
| 1403 | |
| 1404 | .. code-block:: console |
| 1405 | |
| 1406 | max-size 4G |
| 1407 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1408 | tapcli Section |
| 1409 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1410 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1411 | Configuration parameters for TAPCLI (dynamic tap interface hookup.) |
| 1412 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1413 | mtu <n> |
| 1414 | ^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1415 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1416 | Sets interface MTU (maximum transmission unit) size in bytes. This size |
| 1417 | is also related to the number of MTU buffers. Defaults to 1500 bytes. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1418 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1419 | .. code-block:: console |
| 1420 | |
| 1421 | mtu 1500 |
| 1422 | |
| 1423 | disable |
| 1424 | ^^^^^^^ |
| 1425 | |
| 1426 | Disables TAPCLI. Default is that TAPCLI is enabled. |
| 1427 | |
| 1428 | .. code-block:: console |
| 1429 | |
| 1430 | disable |
| 1431 | |
| 1432 | |
| 1433 | tcp Section |
| 1434 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1435 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1436 | Configuration parameters for TCP host stack utilities. The following |
| 1437 | preallocation parameters are related to the initialization of fixed-size, |
| 1438 | preallocation pools. |
| 1439 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1440 | preallocated-connections <n> |
| 1441 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1442 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1443 | Sets the number of preallocated TCP connections. Defaults to 0. |
| 1444 | The preallocated connections per thread is related to this value, |
| 1445 | equal to (preallocated_connections / (num_threads - 1)). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1446 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1447 | .. code-block:: console |
| 1448 | |
| 1449 | preallocated-connections 5 |
| 1450 | |
| 1451 | preallocated-half-open-connections <n> |
| 1452 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1453 | |
| 1454 | Sets the number of preallocated TCP half-open connections. Defaults to 0. |
| 1455 | |
| 1456 | .. code-block:: console |
| 1457 | |
| 1458 | preallocated-half-open-connections 5 |
| 1459 | |
| 1460 | buffer-fail-fraction <n.n> |
| 1461 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1462 | |
| 1463 | Sets the TCP buffer fail fraction (a float) used for fault-injection |
| 1464 | when debugging TCP buffer allocation. Its use is found in *tcp_debug.h*. |
| 1465 | Defaults to 0.0. |
| 1466 | |
| 1467 | .. code-block:: console |
| 1468 | |
| 1469 | buffer-fail-fraction 0.0 |
| 1470 | |
| 1471 | |
| 1472 | tls Section |
| 1473 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1474 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1475 | Configures TLS parameters, such as enabling the use of test certificates. |
| 1476 | These parameters affect the tlsmbedtls and tlsopenssl plugins. |
| 1477 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1478 | use-test-cert-in-ca |
| 1479 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1480 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1481 | Sets a boolean value to 1 to indicate during the initialization of a |
| 1482 | TLS CA chain to attempt to parse and add test certificates to the chain. |
| 1483 | Defaults to 0, meaning test certificates are not used. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1484 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1485 | .. code-block:: console |
| 1486 | |
| 1487 | use-test-cert-in-ca |
| 1488 | |
| 1489 | ca-cert-path <filename> |
| 1490 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1491 | |
| 1492 | Sets the filename path of the location of TLS CA certificates, used when |
| 1493 | initializing and loading TLS CA certificates during the initialization |
| 1494 | of a TLS CA chain. If not set, the default filename path is |
| 1495 | */etc/ssl/certs/ca-certificates.crt*. |
| 1496 | |
| 1497 | .. code-block:: console |
| 1498 | |
| 1499 | ca-cert-path /etc/ssl/certs/ca-certificates.crt |
| 1500 | |
| 1501 | |
| 1502 | tuntap Section |
| 1503 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1504 | |
| 1505 | The "tuntap" driver configures a point-to-point interface between the vpp |
| 1506 | engine and the local Linux kernel stack. This allows e.g. users to ssh to the |
| 1507 | host | VM | container via vpp "revenue" interfaces. It's marginally useful, and |
| 1508 | is currently disabled by default. To [dynamically] create TAP interfaces - the |
| 1509 | preferred scheme - see the "tap_connect" binary API. The Linux network stack |
| 1510 | "vnet" interface needs to manually configure, and VLAN and other settings if |
| 1511 | desired. |
| 1512 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1513 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1514 | enable|disable |
| 1515 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1516 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1517 | Enable or disable the tun/tap driver. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1518 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1519 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1520 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1521 | enable |
| 1522 | |
| 1523 | ethernet|ether |
| 1524 | ^^^^^^^^^^^^^^ |
| 1525 | |
| 1526 | Create a tap device (ethernet MAC) instead of a tun device (point-to-point |
| 1527 | tunnel). The two keywords are aliases for the same function. |
| 1528 | |
| 1529 | .. code-block:: console |
| 1530 | |
| 1531 | ethernet |
| 1532 | |
| 1533 | have-normal-interface|have-normal |
| 1534 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1535 | |
| 1536 | Treat the host Linux stack as a routing peer instead of programming VPP |
| 1537 | interface L3 addresses onto the tun/tap devices. The two keywords are |
| 1538 | aliases for the same function. |
| 1539 | |
| 1540 | .. code-block:: console |
| 1541 | |
| 1542 | have-normal-interface |
| 1543 | |
| 1544 | name <name> |
| 1545 | ^^^^^^^^^^^ |
| 1546 | |
| 1547 | Assign name to the tun/tap device. |
| 1548 | |
| 1549 | .. code-block:: console |
| 1550 | |
| 1551 | name vpp1 |
| 1552 | |
| 1553 | |
| 1554 | vhost-user Section |
| 1555 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1556 | |
| 1557 | Vhost-user configuration parameters control the vhost-user driver. |
| 1558 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1559 | coalesce-frames <n> |
| 1560 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1561 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1562 | Subject to deadline-timer expiration - see next item - attempt to transmit |
| 1563 | at least <n> packet frames. Default is 32 frames. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1564 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1565 | .. code-block:: console |
| 1566 | |
| 1567 | coalesce-frames 64 |
| 1568 | |
| 1569 | coalesce-time <seconds> |
| 1570 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1571 | |
| 1572 | Hold packets no longer than (floating-point) seconds before transmitting |
| 1573 | them. Default is 0.001 seconds |
| 1574 | |
| 1575 | .. code-block:: console |
| 1576 | |
| 1577 | coalesce-time 0.002 |
| 1578 | |
| 1579 | dont-dump-memory |
| 1580 | ^^^^^^^^^^^^^^^^ |
| 1581 | |
| 1582 | vhost-user shared-memory segments can add up to a large amount of memory, so |
| 1583 | it's handy to avoid adding them to corefiles when using a significant number |
| 1584 | of such interfaces. |
| 1585 | |
| 1586 | .. code-block:: console |
| 1587 | |
| 1588 | dont-dump-memory |
| 1589 | |
| 1590 | |
| 1591 | vlib Section |
| 1592 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1593 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1594 | These parameters configure VLIB, such as allowing you to choose whether to |
| 1595 | enable memory traceback or a post-mortem elog dump. |
| 1596 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1597 | memory-trace |
| 1598 | ^^^^^^^^^^^^ |
| 1599 | |
| 1600 | Enables memory trace (mheap traceback.) Defaults to 0, meaning memory |
| 1601 | trace is disabled. |
| 1602 | |
| 1603 | .. code-block:: console |
| 1604 | |
| 1605 | memory-trace |
| 1606 | |
| 1607 | elog-events <n> |
| 1608 | ^^^^^^^^^^^^^^^ |
| 1609 | |
| 1610 | Sets the number of elements/events (the size) of the event ring |
| 1611 | (a circular buffer of events.) This number rounds to a power of 2. |
| 1612 | Defaults to 131072 (128 << 10) elements. |
| 1613 | |
| 1614 | .. code-block:: console |
| 1615 | |
| 1616 | elog-events 4096 |
| 1617 | |
| 1618 | elog-post-mortem-dump |
| 1619 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1620 | |
| 1621 | Enables the attempt of a post-mortem elog dump to |
| 1622 | */tmp/elog_post_mortem.<PID_OF_CALLING_PROCESS>* if os_panic or |
| 1623 | os_exit is called. |
| 1624 | |
| 1625 | .. code-block:: console |
| 1626 | |
| 1627 | elog-post-mortem-dump |