NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
simple_fwd_port.c File Reference
#include <rte_eal.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_ether.h>
#include <rte_ethdev.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_net.h>
#include <doca_log.h>
#include <doca_flow.h>
#include "simple_fwd_port.h"
Include dependency graph for simple_fwd_port.c:

Go to the source code of this file.

Macros

#define NS_PER_SEC   1E9 /* Nano-seconds per second */
 
#define CLOCK_TYPE_ID   CLOCK_MONOTONIC
 

Functions

 DOCA_LOG_REGISTER (SIMPLE_FWD_PORT)
 
static int simple_fwd_port_stats_display (uint16_t port, FILE *f)
 
int simple_fwd_dump_port_stats (uint16_t port_id, struct doca_flow_port *port)
 

Macro Definition Documentation

◆ CLOCK_TYPE_ID

#define CLOCK_TYPE_ID   CLOCK_MONOTONIC

Definition at line 48 of file simple_fwd_port.c.

◆ NS_PER_SEC

#define NS_PER_SEC   1E9 /* Nano-seconds per second */

Definition at line 42 of file simple_fwd_port.c.

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( SIMPLE_FWD_PORT  )

◆ simple_fwd_dump_port_stats()

int simple_fwd_dump_port_stats ( uint16_t  port_id,
struct doca_flow_port *  port 
)

Definition at line 164 of file simple_fwd_port.c.

◆ simple_fwd_port_stats_display()

static int simple_fwd_port_stats_display ( uint16_t  port,
FILE *  f 
)
static

Definition at line 58 of file simple_fwd_port.c.