DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DPDKPortConfiguration.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DPDKPortConfiguration object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
bool | get_flow_control () const |
Get "flow_control" attribute value. | |
void | set_flow_control (bool value) |
Set "flow_control" attribute value. | |
bool | get_promiscuous_mode () const |
Get "promiscuous_mode" attribute value. | |
void | set_promiscuous_mode (bool value) |
Set "promiscuous_mode" attribute value. | |
uint32_t | get_mtu () const |
Get "mtu" attribute value. | |
void | set_mtu (uint32_t value) |
Set "mtu" attribute value. | |
uint32_t | get_rx_ring_size () const |
Get "rx_ring_size" attribute value. | |
void | set_rx_ring_size (uint32_t value) |
Set "rx_ring_size" attribute value. | |
uint32_t | get_tx_ring_size () const |
Get "tx_ring_size" attribute value. | |
void | set_tx_ring_size (uint32_t value) |
Set "tx_ring_size" attribute value. | |
uint32_t | get_num_bufs () const |
Get "num_bufs" attribute value. | |
void | set_num_bufs (uint32_t value) |
Set "num_bufs" attribute value. | |
uint32_t | get_mbuf_cache_size () const |
Get "mbuf_cache_size" attribute value. | |
void | set_mbuf_cache_size (uint32_t value) |
Set "mbuf_cache_size" attribute value. | |
uint32_t | get_burst_size () const |
Get "burst_size" attribute value. | |
void | set_burst_size (uint32_t value) |
Set "burst_size" attribute value. | |
uint32_t | get_lcore_sleep_us () const |
Get "lcore_sleep_us" attribute value. | |
void | set_lcore_sleep_us (uint32_t value) |
Set "lcore_sleep_us" attribute value. | |
int16_t | get_source_to_rx_queue_multiplexing () const |
Get "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue. | |
void | set_source_to_rx_queue_multiplexing (int16_t value) |
Set "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue. | |
const std::vector< const dunedaq::confmodel::ProcessingResource * > & | get_used_lcores () const |
Get "used_lcores" relationship value. associates CPUs to the data reception workload. | |
void | set_used_lcores (const std::vector< const dunedaq::confmodel::ProcessingResource * > &value) |
Set "used_lcores" relationship value. associates CPUs to the data reception workload. | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DPDKPortConfiguration object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
bool | get_flow_control () const |
Get "flow_control" attribute value. | |
void | set_flow_control (bool value) |
Set "flow_control" attribute value. | |
bool | get_promiscuous_mode () const |
Get "promiscuous_mode" attribute value. | |
void | set_promiscuous_mode (bool value) |
Set "promiscuous_mode" attribute value. | |
uint32_t | get_mtu () const |
Get "mtu" attribute value. | |
void | set_mtu (uint32_t value) |
Set "mtu" attribute value. | |
uint32_t | get_rx_ring_size () const |
Get "rx_ring_size" attribute value. | |
void | set_rx_ring_size (uint32_t value) |
Set "rx_ring_size" attribute value. | |
uint32_t | get_tx_ring_size () const |
Get "tx_ring_size" attribute value. | |
void | set_tx_ring_size (uint32_t value) |
Set "tx_ring_size" attribute value. | |
uint32_t | get_num_bufs () const |
Get "num_bufs" attribute value. | |
void | set_num_bufs (uint32_t value) |
Set "num_bufs" attribute value. | |
uint32_t | get_mbuf_cache_size () const |
Get "mbuf_cache_size" attribute value. | |
void | set_mbuf_cache_size (uint32_t value) |
Set "mbuf_cache_size" attribute value. | |
uint32_t | get_burst_size () const |
Get "burst_size" attribute value. | |
void | set_burst_size (uint32_t value) |
Set "burst_size" attribute value. | |
uint32_t | get_lcore_sleep_us () const |
Get "lcore_sleep_us" attribute value. | |
void | set_lcore_sleep_us (uint32_t value) |
Set "lcore_sleep_us" attribute value. | |
int16_t | get_source_to_rx_queue_multiplexing () const |
Get "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue. | |
void | set_source_to_rx_queue_multiplexing (int16_t value) |
Set "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue. | |
const std::vector< const dunedaq::confmodel::ProcessingResource * > & | get_used_lcores () const |
Get "used_lcores" relationship value. associates CPUs to the data reception workload. | |
void | set_used_lcores (const std::vector< const dunedaq::confmodel::ProcessingResource * > &value) |
Set "used_lcores" relationship value. associates CPUs to the data reception workload. | |
![]() | |
const std::string & | UID () const noexcept |
const std::string & | class_name () const noexcept |
bool | castable (const std::string &target) const noexcept |
bool | castable (const std::string *target) const noexcept |
template<class TARGET > | |
const TARGET * | cast () const noexcept |
Casts object to different class. | |
std::string | full_name () const noexcept |
const ConfigObject & | config_object () const |
DalRegistry & | registry () const noexcept |
Configuration & | configuration () const noexcept |
void | unread () |
void | set (const ConfigObject &o) noexcept |
void | move (const std::string &at) |
void | rename (const std::string &new_id) |
void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
print object headers | |
std::ostream & | print_object (std::ostream &s) const |
print object details | |
void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
throw object initialisation exception (i.e. | |
Static Public Member Functions | |
static const std::string & | __get_flow_control_str () noexcept |
static const std::string & | __get_promiscuous_mode_str () noexcept |
static const std::string & | __get_mtu_str () noexcept |
static const std::string & | __get_rx_ring_size_str () noexcept |
static const std::string & | __get_tx_ring_size_str () noexcept |
static const std::string & | __get_num_bufs_str () noexcept |
static const std::string & | __get_mbuf_cache_size_str () noexcept |
static const std::string & | __get_burst_size_str () noexcept |
static const std::string & | __get_lcore_sleep_us_str () noexcept |
static const std::string & | __get_source_to_rx_queue_multiplexing_str () noexcept |
static const std::string & | __get_used_lcores_str () noexcept |
static const std::string & | __get_flow_control_str () noexcept |
static const std::string & | __get_promiscuous_mode_str () noexcept |
static const std::string & | __get_mtu_str () noexcept |
static const std::string & | __get_rx_ring_size_str () noexcept |
static const std::string & | __get_tx_ring_size_str () noexcept |
static const std::string & | __get_num_bufs_str () noexcept |
static const std::string & | __get_mbuf_cache_size_str () noexcept |
static const std::string & | __get_burst_size_str () noexcept |
static const std::string & | __get_lcore_sleep_us_str () noexcept |
static const std::string & | __get_source_to_rx_queue_multiplexing_str () noexcept |
static const std::string & | __get_used_lcores_str () noexcept |
![]() | |
static void | p_null (std::ostream &s) |
print "(null)" | |
static void | p_rm (std::ostream &s) |
print "(deleted object)" | |
static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
print error text | |
static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
throw exception in generated get method (i.e. | |
static bool | is_null (const DalObject *ref) noexcept |
check a pointer on DAL object is null | |
Static Public Attributes | |
static const std::string & | s_class_name |
static const std::string | s_flow_control = "flow_control" |
static const std::string | s_promiscuous_mode = "promiscuous_mode" |
static const std::string | s_mtu = "mtu" |
static const std::string | s_rx_ring_size = "rx_ring_size" |
static const std::string | s_tx_ring_size = "tx_ring_size" |
static const std::string | s_num_bufs = "num_bufs" |
static const std::string | s_mbuf_cache_size = "mbuf_cache_size" |
static const std::string | s_burst_size = "burst_size" |
static const std::string | s_lcore_sleep_us = "lcore_sleep_us" |
static const std::string | s_source_to_rx_queue_multiplexing = "source_to_rx_queue_multiplexing" |
static const std::string | s_used_lcores = "used_lcores" |
Protected Member Functions | |
DPDKPortConfiguration (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DPDKPortConfiguration () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
DPDKPortConfiguration (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DPDKPortConfiguration () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
DalObject (DalRegistry &db, const ConfigObject &o) noexcept | |
virtual | ~DalObject () |
void | clear () noexcept |
void | check () const |
bool | is_deleted () const |
void | increment_created () noexcept |
void | increment_read () noexcept |
void | check_init () const |
Check and initialize object if necessary. | |
template<typename T > | |
void | _set_object (const std::string &name, const T *value) |
Helper method for generated set single-value relationship methods. | |
template<typename T > | |
void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
Helper method for generated set multi-value relationship methods. | |
bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
Read relationship values as DAL objects using DAL factory. | |
bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
Run algorithm and return result as DAL objects using DAL factory. | |
Private Attributes | |
bool | m_flow_control |
bool | m_promiscuous_mode |
uint32_t | m_mtu |
uint32_t | m_rx_ring_size |
uint32_t | m_tx_ring_size |
uint32_t | m_num_bufs |
uint32_t | m_mbuf_cache_size |
uint32_t | m_burst_size |
uint32_t | m_lcore_sleep_us |
int16_t | m_source_to_rx_queue_multiplexing |
std::vector< const dunedaq::confmodel::ProcessingResource * > | m_used_lcores |
Friends | |
class | conffwk::Configuration |
class | conffwk::DalObject |
class | conffwk::DalFactory |
class | conffwk::DalRegistry |
Additional Inherited Members | |
![]() | |
std::mutex | m_mutex |
Used to protect changes of DAL object. | |
bool | p_was_read |
is true, if the object was read | |
DalRegistry & | p_registry |
Configuration object. | |
ConfigObject | p_obj |
Config object used by given template object. | |
std::string | p_UID |
Is used for template objects (see dqm_conffwk) | |
Definition at line 29 of file DPDKPortConfiguration.hpp.
|
protectednoexcept |
Definition at line 31 of file DPDKPortConfiguration.cpp.
|
protectedvirtualnoexcept |
Definition at line 97 of file DPDKPortConfiguration.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 115 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 115 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 108 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 108 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 116 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 116 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 114 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 114 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 110 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 110 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 113 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 113 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 109 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 109 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 111 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 111 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 117 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 117 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 112 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 112 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 436 of file DPDKPortConfiguration.hpp.
|
inlinestaticnoexcept |
Definition at line 436 of file DPDKPortConfiguration.hpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Definition at line 101 of file DPDKPortConfiguration.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
|
protected |
Definition at line 111 of file DPDKPortConfiguration.cpp.
|
protected |
|
inline |
Get "burst_size" attribute value.
Definition at line 344 of file DPDKPortConfiguration.hpp.
|
inline |
Get "burst_size" attribute value.
Definition at line 344 of file DPDKPortConfiguration.hpp.
|
inline |
Get "flow_control" attribute value.
Definition at line 127 of file DPDKPortConfiguration.hpp.
|
inline |
Get "flow_control" attribute value.
Definition at line 127 of file DPDKPortConfiguration.hpp.
|
inline |
Get "lcore_sleep_us" attribute value.
Definition at line 375 of file DPDKPortConfiguration.hpp.
|
inline |
Get "lcore_sleep_us" attribute value.
Definition at line 375 of file DPDKPortConfiguration.hpp.
|
inline |
Get "mbuf_cache_size" attribute value.
Definition at line 313 of file DPDKPortConfiguration.hpp.
|
inline |
Get "mbuf_cache_size" attribute value.
Definition at line 313 of file DPDKPortConfiguration.hpp.
|
inline |
Get "mtu" attribute value.
Definition at line 189 of file DPDKPortConfiguration.hpp.
|
inline |
Get "mtu" attribute value.
Definition at line 189 of file DPDKPortConfiguration.hpp.
|
inline |
Get "num_bufs" attribute value.
Definition at line 282 of file DPDKPortConfiguration.hpp.
|
inline |
Get "num_bufs" attribute value.
Definition at line 282 of file DPDKPortConfiguration.hpp.
|
inline |
Get "promiscuous_mode" attribute value.
Definition at line 158 of file DPDKPortConfiguration.hpp.
|
inline |
Get "promiscuous_mode" attribute value.
Definition at line 158 of file DPDKPortConfiguration.hpp.
|
inline |
Get "rx_ring_size" attribute value.
Definition at line 220 of file DPDKPortConfiguration.hpp.
|
inline |
Get "rx_ring_size" attribute value.
Definition at line 220 of file DPDKPortConfiguration.hpp.
|
inline |
Get "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue.
Definition at line 407 of file DPDKPortConfiguration.hpp.
|
inline |
Get "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue.
Definition at line 407 of file DPDKPortConfiguration.hpp.
|
inline |
Get "tx_ring_size" attribute value.
Definition at line 251 of file DPDKPortConfiguration.hpp.
|
inline |
Get "tx_ring_size" attribute value.
Definition at line 251 of file DPDKPortConfiguration.hpp.
|
inline |
Get "used_lcores" relationship value. associates CPUs to the data reception workload.
Definition at line 447 of file DPDKPortConfiguration.hpp.
|
inline |
Get "used_lcores" relationship value. associates CPUs to the data reception workload.
Definition at line 447 of file DPDKPortConfiguration.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Definition at line 73 of file DPDKPortConfiguration.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
|
virtual |
Print details of the DPDKPortConfiguration object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
Definition at line 38 of file DPDKPortConfiguration.cpp.
|
virtual |
Print details of the DPDKPortConfiguration object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
|
inline |
Set "burst_size" attribute value.
value | new attribute value |
Definition at line 359 of file DPDKPortConfiguration.hpp.
|
inline |
Set "burst_size" attribute value.
value | new attribute value |
Definition at line 359 of file DPDKPortConfiguration.hpp.
|
inline |
Set "flow_control" attribute value.
value | new attribute value |
Definition at line 142 of file DPDKPortConfiguration.hpp.
|
inline |
Set "flow_control" attribute value.
value | new attribute value |
Definition at line 142 of file DPDKPortConfiguration.hpp.
|
inline |
Set "lcore_sleep_us" attribute value.
value | new attribute value |
Definition at line 390 of file DPDKPortConfiguration.hpp.
|
inline |
Set "lcore_sleep_us" attribute value.
value | new attribute value |
Definition at line 390 of file DPDKPortConfiguration.hpp.
|
inline |
Set "mbuf_cache_size" attribute value.
value | new attribute value |
Definition at line 328 of file DPDKPortConfiguration.hpp.
|
inline |
Set "mbuf_cache_size" attribute value.
value | new attribute value |
Definition at line 328 of file DPDKPortConfiguration.hpp.
|
inline |
Set "mtu" attribute value.
value | new attribute value |
Definition at line 204 of file DPDKPortConfiguration.hpp.
|
inline |
Set "mtu" attribute value.
value | new attribute value |
Definition at line 204 of file DPDKPortConfiguration.hpp.
|
inline |
Set "num_bufs" attribute value.
value | new attribute value |
Definition at line 297 of file DPDKPortConfiguration.hpp.
|
inline |
Set "num_bufs" attribute value.
value | new attribute value |
Definition at line 297 of file DPDKPortConfiguration.hpp.
|
inline |
Set "promiscuous_mode" attribute value.
value | new attribute value |
Definition at line 173 of file DPDKPortConfiguration.hpp.
|
inline |
Set "promiscuous_mode" attribute value.
value | new attribute value |
Definition at line 173 of file DPDKPortConfiguration.hpp.
|
inline |
Set "rx_ring_size" attribute value.
value | new attribute value |
Definition at line 235 of file DPDKPortConfiguration.hpp.
|
inline |
Set "rx_ring_size" attribute value.
value | new attribute value |
Definition at line 235 of file DPDKPortConfiguration.hpp.
|
inline |
Set "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue.
value | new attribute value |
Definition at line 423 of file DPDKPortConfiguration.hpp.
|
inline |
Set "source_to_rx_queue_multiplexing" attribute value. Indicates how many source streams are put onto one rx queue.
value | new attribute value |
Definition at line 423 of file DPDKPortConfiguration.hpp.
|
inline |
Set "tx_ring_size" attribute value.
value | new attribute value |
Definition at line 266 of file DPDKPortConfiguration.hpp.
|
inline |
Set "tx_ring_size" attribute value.
value | new attribute value |
Definition at line 266 of file DPDKPortConfiguration.hpp.
void dunedaq::appmodel::DPDKPortConfiguration::set_used_lcores | ( | const std::vector< const dunedaq::confmodel::ProcessingResource * > & | value | ) |
Set "used_lcores" relationship value. associates CPUs to the data reception workload.
value | new relationship value |
Definition at line 130 of file DPDKPortConfiguration.cpp.
void dunedaq::appmodel::DPDKPortConfiguration::set_used_lcores | ( | const std::vector< const dunedaq::confmodel::ProcessingResource * > & | value | ) |
Set "used_lcores" relationship value. associates CPUs to the data reception workload.
value | new relationship value |
|
friend |
Definition at line 31 of file DPDKPortConfiguration.hpp.
|
friend |
Definition at line 33 of file DPDKPortConfiguration.hpp.
|
friend |
Definition at line 32 of file DPDKPortConfiguration.hpp.
|
friend |
Definition at line 34 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 87 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 80 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 88 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 86 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 82 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 85 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 81 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 83 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 89 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 84 of file DPDKPortConfiguration.hpp.
|
private |
Definition at line 90 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 104 of file DPDKPortConfiguration.hpp.
|
static |
The name of the configuration class.
Definition at line 46 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 97 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 105 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 103 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 99 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 102 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 98 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 100 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 106 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 101 of file DPDKPortConfiguration.hpp.
|
inlinestatic |
Definition at line 434 of file DPDKPortConfiguration.hpp.