DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
EALSetup.hpp File Reference
#include "logging/Logging.hpp"
#include <boost/program_options/parsers.hpp>
#include <rte_eal.h>
#include <rte_ethdev.h>
Include dependency graph for EALSetup.hpp:
This graph shows which files directly or indirectly include this file:

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
 

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 volatile uint8_t dunedaq::dpdklibs::ealutils::dpdk_quit_signal
 

Detailed Description

EAL setup functions for DPDK

This is part of the DUNE DAQ , copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file EALSetup.hpp.

Macro Definition Documentation

◆ MBUF_CACHE_SIZE

#define MBUF_CACHE_SIZE   250

Definition at line 24 of file EALSetup.hpp.

◆ NUM_MBUFS

#define NUM_MBUFS   8191

Definition at line 23 of file EALSetup.hpp.