FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::net::DpdkDatagramSource Class Reference

#include <fastmm/net/dpdk_datagram_source.hpp>

Public Member Functions

 DpdkDatagramSource ()=default
 
 ~DpdkDatagramSource ()
 
 DpdkDatagramSource (const DpdkDatagramSource &)=delete
 
DpdkDatagramSource & operator= (const DpdkDatagramSource &)=delete
 
 DpdkDatagramSource (DpdkDatagramSource &&)=delete
 
DpdkDatagramSource & operator= (DpdkDatagramSource &&)=delete
 
int open (const DpdkConfig &cfg)
 Returns 0 or -errno; error() explains. -ENOTSUP without DPDK in the build.
 
void close () noexcept
 
const std::string & error () const noexcept
 
const std::string & port_name () const noexcept
 
const std::string & exception_interface () const noexcept
 The exception port's netdev ("" without one).
 
template<class H >
std::size_t poll (H &&handler) noexcept
 
int refresh_stats () noexcept
 rte_eth_stats_get (not for the hot loop).
 
const DpdkStats & stats () const noexcept
 

Constructor & Destructor Documentation

◆ DpdkDatagramSource() [1/3]

fastmm::net::DpdkDatagramSource::DpdkDatagramSource ( )
default

◆ ~DpdkDatagramSource()

fastmm::net::DpdkDatagramSource::~DpdkDatagramSource ( )
inline

◆ DpdkDatagramSource() [2/3]

fastmm::net::DpdkDatagramSource::DpdkDatagramSource ( const DpdkDatagramSource &  )
delete

◆ DpdkDatagramSource() [3/3]

fastmm::net::DpdkDatagramSource::DpdkDatagramSource ( DpdkDatagramSource &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

DpdkDatagramSource & fastmm::net::DpdkDatagramSource::operator= ( const DpdkDatagramSource &  )
delete

◆ operator=() [2/2]

DpdkDatagramSource & fastmm::net::DpdkDatagramSource::operator= ( DpdkDatagramSource &&  )
delete

◆ open()

int fastmm::net::DpdkDatagramSource::open ( const DpdkConfig &  cfg)

Returns 0 or -errno; error() explains. -ENOTSUP without DPDK in the build.

◆ close()

void fastmm::net::DpdkDatagramSource::close ( )
noexcept

◆ error()

const std::string & fastmm::net::DpdkDatagramSource::error ( ) const
inlinenoexcept

◆ port_name()

const std::string & fastmm::net::DpdkDatagramSource::port_name ( ) const
inlinenoexcept

◆ exception_interface()

const std::string & fastmm::net::DpdkDatagramSource::exception_interface ( ) const
inlinenoexcept

The exception port's netdev ("" without one).

◆ poll()

template<class H >
std::size_t fastmm::net::DpdkDatagramSource::poll ( H &&  handler)
inlinenoexcept

◆ refresh_stats()

int fastmm::net::DpdkDatagramSource::refresh_stats ( )
noexcept

rte_eth_stats_get (not for the hot loop).

◆ stats()

const DpdkStats & fastmm::net::DpdkDatagramSource::stats ( ) const
inlinenoexcept