FD.io VPP  v20.09-64-g4f7b92f0a
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_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_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 18 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 19 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)
unsigned long u64
Definition: types.h:89
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:78
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
#define PREDICT_FALSE(x)
Definition: clib.h:120

Definition at line 76 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)
vl_api_prefix_t prefix
Definition: ip.api:144
vl_api_fib_path_type_t type
Definition: fib_types.api:123
vl_api_tunnel_mode_t mode
Definition: gre.api:48
vhost_user_log_t log
Definition: vhost_user.h:113

Definition at line 44 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 29 of file dpdk_priv.h.

◆ foreach_eal_single_hyphen_arg

#define foreach_eal_single_hyphen_arg
Value:
_(mem-alloc-request, m) \
_(force-ranks, r)
vhost_user_req_t request
Definition: vhost_user.h:104
void * mem

Definition at line 39 of file dpdk_priv.h.

◆ foreach_eal_single_hyphen_mandatory_arg

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

Definition at line 35 of file dpdk_priv.h.

◆ I40E_DEV_ID_10G_BASE_T

#define I40E_DEV_ID_10G_BASE_T   0x1586

Definition at line 25 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_A

#define I40E_DEV_ID_QSFP_A   0x1583

Definition at line 22 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_B

#define I40E_DEV_ID_QSFP_B   0x1584

Definition at line 23 of file dpdk_priv.h.

◆ I40E_DEV_ID_QSFP_C

#define I40E_DEV_ID_QSFP_C   0x1585

Definition at line 24 of file dpdk_priv.h.

◆ I40E_DEV_ID_SFP_XL710

#define I40E_DEV_ID_SFP_XL710   0x1572

Definition at line 21 of file dpdk_priv.h.

◆ I40E_DEV_ID_VF

#define I40E_DEV_ID_VF   0x154C

Definition at line 26 of file dpdk_priv.h.

Function Documentation

◆ dpdk_get_xstats()

static void dpdk_get_xstats ( dpdk_device_t xd)
inlinestatic

Definition at line 53 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 95 of file dpdk_priv.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: