Настройки обработчика пакетов

В версии 20.08 изменен формат конфигурационного файла data-plane.conf. Поддержка старого формата сохранена.

Оптимальные настройки определяются автоматически при запуске, поэтому в норме файл пуст. Комментарии задаются через // или /* */.

Доступные параметры:

// TCP port for control socket
ontrol_port: 8888

// Number of control socket processing threads
control_threads: 10

// TCP port for debug control socket
debug_port: 8889

// Number of debug control socket processing threads
debug_threads: 2

// Maximum supported number of policies
max_policies: 100

// Size of packet memory pool (for each NUMA node)
packet_mempool_size: 262144

// Bypass traffic on packet processor congestion
congestion_bypass: false

// Deferred start of packet processing
deferred_start: false

// Default number of all port queue ring descriptors
port_desc_nr: 1024

// Default number of port rx queue ring descriptors
port_rx_desc: 1024

// Default number of port tx queue ring descriptors
port_tx_desc: 1024

// Default port MTU
port_mtu: 1500

// Maximum retries of port packet tx (power of 2)
port_tx_retries: 7

// Default port direct IO mode
port_direct_mode: false

// Default IO cores for port RX ("auto|ht|noht" or range list)
port_cores: auto

// Default number of port IO cores per NUMA node
port_cores_nr: 1

// Default NUMA nodes for port processing ("auto|all" or range list)
port_nodes: all

// Worker cores ("auto|ht|noht" or range list)
worker_cores: 5,6-7

// Worker cores number per NUMA node
worker_cores_nr: 5

// Worker NUMA nodes ("auto|all" or range list)
worker_nodes: all

// External port 0
ext0: 04:00.0

// Internal port 0
int0: 04:00.1
    // Number of all queue ring descriptors
    desc_nr: 1024

    // Number of rx queue ring descriptors
    rx_desc: 1024

    // Number of tx queue ring descriptors
    tx_desc: 1024

    // MTU
    mtu: 1500

    // Direct IO mode
    direct_mode: false

    // IO cores for port RX.
    // Direct IO mode if not specified ("auto|ht|noht" or range list)
    cores: 2,3-4

    // Number of port IO cores per NUMA node
    cores_nr: 4

    // NUMA nodes for port processing.
    // Use port native node by default ("auto|all" or range list)
    nodes: 0