Agora  1.2.0
Agora project
dpdk_transport.h File Reference

Declaration file for the DpdkTransport class. More...

#include <netinet/ether.h>
#include <rte_byteorder.h>
#include <rte_cycles.h>
#include <rte_debug.h>
#include <rte_distributor.h>
#include <rte_eal.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
#include <rte_flow.h>
#include <rte_ip.h>
#include <rte_malloc.h>
#include <rte_pause.h>
#include <rte_prefetch.h>
#include <rte_udp.h>
#include <unistd.h>
#include <cinttypes>
#include <string>
#include "utils.h"
Include dependency graph for dpdk_transport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DpdkTransport
 

Variables

static constexpr size_t kRxRingSize = 2048
 
static constexpr size_t kTxRingSize = 2048
 
static constexpr size_t kNumMBufs = ((64 * 1024) - 1)
 
static constexpr size_t kMBufCacheSize = 128
 
static constexpr size_t kMacAddrBtyes = 17
 
static constexpr size_t kJumboFrameMaxSize = 0x2600
 
static constexpr size_t kRxBatchSize = 16
 Maximum number of packets received in rx_burst. More...
 
static constexpr size_t kTxBatchSize = 1
 
static constexpr size_t kPayloadOffset
 Offset to the payload starting from the beginning of the UDP frame. More...
 

Detailed Description

Declaration file for the DpdkTransport class.

Declaration file for the Memory related storage classes. Table / PtrGrid / PtrCube / 1D buffer allocation & free.

Variable Documentation

◆ kJumboFrameMaxSize

constexpr size_t kJumboFrameMaxSize = 0x2600
staticconstexpr

◆ kMacAddrBtyes

constexpr size_t kMacAddrBtyes = 17
staticconstexpr

◆ kMBufCacheSize

constexpr size_t kMBufCacheSize = 128
staticconstexpr

◆ kNumMBufs

constexpr size_t kNumMBufs = ((64 * 1024) - 1)
staticconstexpr

◆ kPayloadOffset

constexpr size_t kPayloadOffset
staticconstexpr
Initial value:
=
sizeof(rte_ether_hdr) + sizeof(rte_ipv4_hdr) + sizeof(rte_udp_hdr)

Offset to the payload starting from the beginning of the UDP frame.

◆ kRxBatchSize

constexpr size_t kRxBatchSize = 16
staticconstexpr

Maximum number of packets received in rx_burst.

◆ kRxRingSize

constexpr size_t kRxRingSize = 2048
staticconstexpr

◆ kTxBatchSize

constexpr size_t kTxBatchSize = 1
staticconstexpr

◆ kTxRingSize

constexpr size_t kTxRingSize = 2048
staticconstexpr