Skip to content
Eddie Kohler edited this page Oct 18, 2017 · 1 revision

DPDKInfo Element Documentation

NAME

DPDKInfo — Click element; Set DPDK global parameters.

SYNOPSIS

DPDKInfo([keywords NB_MBUF, MBUF_SIZE, RX_PTHRESH, etc.])

Ports: none

DESCRIPTION

Set Intel's DPDK global parameters used by FromDPDKDevice and ToDPDKDevice elements. See DPDK documentation for details.

Keyword arguments:

  • NB_MBUF — Integer. Number of message buffers to allocate. Defaults to 524288.
  • MBUF_SIZE — Integer. Size of a message buffer in bytes. Defaults to 2048 + RTE_PKTMBUF_HEADROOM + sizeof (struct rte_mbuf).
  • MBUF_CACHE_SIZE — Integer. Number of message buffer to keep in a per-core cache. It should be such that NB_MBUF modulo MBUF_CACHE_SIZE == 0. Defaults to 256.
  • RX_PTHRESH — Integer. RX prefetch threshold. Defaults to 8.
  • RX_HTHRESH — Integer. RX host threshold. Defaults to 8.
  • RX_WTHRESH — Integer. RX write-back threshold. Defaults to 4.
  • TX_PTHRESH — Integer. TX prefetch threshold. Defaults to 36.
  • TX_HTHRESH — Integer. TX host threshold. Defaults to 0.
  • TX_WTHRESH — Integer. TX write-back threshold. Defaults to 0.

This element is only available at user level, when compiled with DPDK support.

EXAMPLES

  DPDKInfo(NB_MBUF 1048576, MBUF_SIZE 4096, MBUF_CACHE_SIZE 512)

SEE ALSO

FromDPDKDevice, ToDPDKDevice

Generated by click-elem2man from ../../elements/userlevel/dpdkinfo.hh:9 on 2017/10/17.

Clone this wiki locally