FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
VOM::HW Class Reference

Data Structures

class  cmd_q
 The pipe to VPP into which we write the commands. More...
 
class  item
 A HW::item is data that is either to be written to or read from VPP/HW. More...
 

Static Public Member Functions

static void init (cmd_q *f)
 Initialise the HW connection to VPP - the UT version passing a mock Q. More...
 
static void init ()
 Initialise the HW. More...
 
static void enqueue (cmd *f)
 Enqueue A command for execution. More...
 
static void enqueue (std::shared_ptr< cmd > c)
 Enqueue A command for execution. More...
 
static void enqueue (std::queue< cmd * > &c)
 Enqueue A set of commands for execution. More...
 
static rc_t write ()
 Write/Execute all commands hitherto enqueued. More...
 
static void connect ()
 Blocking Connect to VPP. More...
 
static bool poll ()
 Blocking pool of the HW connection. More...
 

Friends

class OM
 Only the OM can enable/disable HW. More...
 

Detailed Description

Definition at line 33 of file hw.hpp.

Member Function Documentation

void VOM::HW::connect ( )
static

Blocking Connect to VPP.

Definition at line 207 of file hw.cpp.

void VOM::HW::enqueue ( cmd f)
static

Enqueue A command for execution.

Definition at line 189 of file hw.cpp.

void VOM::HW::enqueue ( std::shared_ptr< cmd c)
static

Enqueue A command for execution.

Definition at line 195 of file hw.cpp.

void VOM::HW::enqueue ( std::queue< cmd * > &  c)
static

Enqueue A set of commands for execution.

Definition at line 201 of file hw.cpp.

void VOM::HW::init ( HW::cmd_q f)
static

Initialise the HW connection to VPP - the UT version passing a mock Q.

Initialse the connection to VPP.

Definition at line 174 of file hw.cpp.

void VOM::HW::init ( )
static

Initialise the HW.

Initialse the connection to VPP.

Definition at line 183 of file hw.cpp.

+ Here is the call graph for this function:

bool VOM::HW::poll ( )
static

Blocking pool of the HW connection.

Definition at line 231 of file hw.cpp.

+ Here is the call graph for this function:

rc_t VOM::HW::write ( )
static

Write/Execute all commands hitherto enqueued.

Definition at line 225 of file hw.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class OM
friend

Only the OM can enable/disable HW.

Definition at line 345 of file hw.hpp.


The documentation for this class was generated from the following files: