DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
EALSetup.cpp File Reference
#include "logging/Logging.hpp"
#include <boost/program_options/parsers.hpp>
#include "dpdklibs/EALSetup.hpp"
#include "dpdklibs/Issues.hpp"
#include <rte_eal.h>
#include <rte_ethdev.h>
Include dependency graph for EALSetup.cpp:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::dpdklibs
 
namespace  dunedaq::dpdklibs::ealutils
 

Macros

#define NUM_MBUFS   8191
 
#define MBUF_CACHE_SIZE   250
 
#define PG_JUMBO_FRAME_LEN   (9600 + RTE_ETHER_CRC_LEN + RTE_ETHER_HDR_LEN)
 
#define RTE_JUMBO_ETHER_MTU   (PG_JUMBO_FRAME_LEN - RTE_ETHER_HDR_LEN - RTE_ETHER_CRC_LEN) /*< Ethernet MTU. */
 

Functions

std::string dunedaq::dpdklibs::ealutils::get_mac_addr_str (const rte_ether_addr &addr)
 
void dunedaq::dpdklibs::ealutils::iface_conf_rss_mode (struct rte_eth_conf &iface_conf, bool mode=false, bool offload=false)
 
int dunedaq::dpdklibs::ealutils::iface_promiscuous_mode (std::uint16_t iface, bool mode=false)
 
int dunedaq::dpdklibs::ealutils::iface_init (uint16_t iface, uint16_t rx_rings, uint16_t tx_rings, uint16_t rx_ring_size, uint16_t tx_ring_size, std::map< int, std::unique_ptr< rte_mempool > > &mbuf_pool, bool with_reset=false, bool with_mq_rss=false, bool check_link_status=false)
 
std::unique_ptr< rte_mempool > dunedaq::dpdklibs::ealutils::get_mempool (const std::string &pool_name, int num_mbufs=NUM_MBUFS, int mbuf_cache_size=MBUF_CACHE_SIZE, int data_room_size=9800, int socket_id=0)
 
std::vector< const char * > dunedaq::dpdklibs::ealutils::construct_eal_argv (const std::vector< std::string > &std_argv)
 
void dunedaq::dpdklibs::ealutils::init_eal (int argc, const char *argv[])
 
void dunedaq::dpdklibs::ealutils::init_eal (const std::vector< std::string > &args)
 
int dunedaq::dpdklibs::ealutils::get_available_ifaces ()
 
int dunedaq::dpdklibs::ealutils::wait_for_lcores ()
 
void dunedaq::dpdklibs::ealutils::finish_eal ()
 

Variables

static const struct rte_eth_conf dunedaq::dpdklibs::ealutils::iface_conf_default
 

Macro Definition Documentation

◆ MBUF_CACHE_SIZE

#define MBUF_CACHE_SIZE   250

Definition at line 26 of file EALSetup.cpp.

◆ NUM_MBUFS

#define NUM_MBUFS   8191

Definition at line 25 of file EALSetup.cpp.

◆ PG_JUMBO_FRAME_LEN

#define PG_JUMBO_FRAME_LEN   (9600 + RTE_ETHER_CRC_LEN + RTE_ETHER_HDR_LEN)

Definition at line 28 of file EALSetup.cpp.

◆ RTE_JUMBO_ETHER_MTU

#define RTE_JUMBO_ETHER_MTU   (PG_JUMBO_FRAME_LEN - RTE_ETHER_HDR_LEN - RTE_ETHER_CRC_LEN) /*< Ethernet MTU. */

Definition at line 30 of file EALSetup.cpp.