FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
dpdk_priv.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DPDK_NB_RX_DESC_DEFAULT   1024
 
#define DPDK_NB_TX_DESC_DEFAULT   1024
 
#define DPDK_MAX_LRO_SIZE_DEFAULT   65536
 
#define DPDK_NB_RX_DESC_VIRTIO   256
 
#define DPDK_NB_TX_DESC_VIRTIO   256
 
#define I40E_DEV_ID_SFP_XL710   0x1572
 
#define I40E_DEV_ID_QSFP_A   0x1583
 
#define I40E_DEV_ID_QSFP_B   0x1584
 
#define I40E_DEV_ID_QSFP_C   0x1585
 
#define I40E_DEV_ID_10G_BASE_T   0x1586
 
#define I40E_DEV_ID_VF   0x154C
 
#define foreach_eal_double_hyphen_predicate_arg
 
#define foreach_eal_single_hyphen_mandatory_arg
 
#define foreach_eal_single_hyphen_arg
 
#define foreach_eal_double_hyphen_arg
 
#define DPDK_UPDATE_COUNTER(vnm, tidx, xd, stat, cnt)
 

Functions

static void dpdk_get_xstats (dpdk_device_t *xd)
 
static void dpdk_update_counters (dpdk_device_t *xd, f64 now)
 

Macro Definition Documentation

◆ DPDK_MAX_LRO_SIZE_DEFAULT

#define DPDK_MAX_LRO_SIZE_DEFAULT   65536

Definition at line 18 of file dpdk_priv.h.

◆ DPDK_NB_RX_DESC_DEFAULT

#define DPDK_NB_RX_DESC_DEFAULT   1024

Definition at line 16 of file dpdk_priv.h.

◆ DPDK_NB_RX_DESC_VIRTIO

#define DPDK_NB_RX_DESC_VIRTIO   256

Definition at line 19 of file dpdk_priv.h.

◆ DPDK_NB_TX_DESC_DEFAULT

#define DPDK_NB_TX_DESC_DEFAULT   1024

Definition at line 17 of file dpdk_priv.h.

◆ DPDK_NB_TX_DESC_VIRTIO

#define DPDK_NB_TX_DESC_VIRTIO   256

Definition at line 20 of file dpdk_priv.h.

◆ DPDK_UPDATE_COUNTER

#define DPDK_UPDATE_COUNTER (   vnm,
  tidx,
  xd,
  stat,
  cnt 
)
Value:
do \
{ \
u64 _v = (xd)->stats.stat; \
u64 _lv = (xd)->last_stats.stat; \
if (PREDICT_FALSE (_v != _lv)) \
{ \
if (PREDICT_FALSE (_v < _lv)) \
dpdk_log_warn ("%v: %s counter decreased (before %lu after %lu)", \
xd->name, #stat, _lv, _v); \
vec_elt_at_index ((vnm)->interface_main.sw_if_counters, cnt), \
(tidx), (xd)->sw_if_index, _v - _lv); \
} \
} \
while (0)

Definition at line 80 of file dpdk_priv.h.

◆ foreach_eal_double_hyphen_arg

#define foreach_eal_double_hyphen_arg
Value:
_(huge-dir) \
_(proc-type) \
_(file-prefix) \
_(vdev) \
_(log-level) \
_(iova-mode) \
_(base-virtaddr)

Definition at line 46 of file dpdk_priv.h.

◆ foreach_eal_double_hyphen_predicate_arg

#define foreach_eal_double_hyphen_predicate_arg
Value:
_(no-shconf) \
_(no-hpet) \
_(no-huge) \
_(vmware-tsc-map)

Definition at line 30 of file dpdk_priv.h.

◆ foreach_eal_single_hyphen_arg

#define foreach_eal_single_hyphen_arg
Value:
_(mem-alloc-request, m) \
_(force-ranks, r)

Definition at line 40 of file dpdk_priv.h.

◆ foreach_eal_single_hyphen_mandatory_arg

#define foreach_eal_single_hyphen_mandatory_arg
Value:
_(coremask, c) \
_(nchannels, n) \

Definition at line 36 of file dpdk_priv.h.

◆ I40E_DEV_ID_10G_BASE_T

#define I40E_DEV_ID_10G_BASE_T   0x1586

Definition at line 26 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_A

#define I40E_DEV_ID_QSFP_A   0x1583

Definition at line 23 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_B

#define I40E_DEV_ID_QSFP_B   0x1584

Definition at line 24 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_C

#define I40E_DEV_ID_QSFP_C   0x1585

Definition at line 25 of file dpdk_priv.h.

◆ I40E_DEV_ID_SFP_XL710

#define I40E_DEV_ID_SFP_XL710   0x1572

Definition at line 22 of file dpdk_priv.h.

◆ I40E_DEV_ID_VF

#define I40E_DEV_ID_VF   0x154C

Definition at line 27 of file dpdk_priv.h.

Function Documentation

◆ dpdk_get_xstats()

static void dpdk_get_xstats ( dpdk_device_t xd)
inlinestatic

Definition at line 57 of file dpdk_priv.h.

+ Here is the caller graph for this function:

◆ dpdk_update_counters()

static void dpdk_update_counters ( dpdk_device_t xd,
f64  now 
)
inlinestatic

Definition at line 99 of file dpdk_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
mode
vl_api_tunnel_mode_t mode
Definition: gre.api:48
mem
void * mem
Definition: flowhash_template.h:361
stats
vl_api_ikev2_sa_stats_t stats
Definition: ikev2_types.api:162
log
vhost_user_log_t log
Definition: vhost_user.h:132
r
vnet_hw_if_output_node_runtime_t * r
Definition: interface_output.c:1089
vlib_increment_simple_counter
static void vlib_increment_simple_counter(vlib_simple_counter_main_t *cm, u32 thread_index, u32 index, u64 increment)
Increment a simple counter.
Definition: counter.h:74
map
counters map
Definition: map.api:356
vec_elt_at_index
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
Definition: vec_bootstrap.h:203
PREDICT_FALSE
#define PREDICT_FALSE(x)
Definition: clib.h:124
c
svmdb_client_t * c
Definition: vpp_get_metrics.c:48
request
vhost_user_req_t request
Definition: vhost_user.h:123
u64
unsigned long u64
Definition: types.h:89
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
prefix
vl_api_prefix_t prefix
Definition: ip.api:175