gem5  v21.1.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gem5::DistEtherLink::RxLink Class Reference

Model for a receive link. More...

#include <dist_etherlink.hh>

Inheritance diagram for gem5::DistEtherLink::RxLink:
gem5::DistEtherLink::Link gem5::Serializable

Public Member Functions

 RxLink (const std::string &name, DistEtherLink *p, Tick delay, EtherDump *d)
 
 ~RxLink ()
 
void setDistInt (DistIface *m)
 Register our dist interface to talk to the peer gem5 processes. More...
 
const EventFunctionWrapperdoneEvent () const
 Done events will be scheduled by DistIface (so we need the accessor) More...
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Protected Member Functions

void rxDone ()
 Receive done callback method. More...
 

Protected Attributes

Tick linkDelay
 Transmission delay for the simulated Ethernet link. More...
 
EventFunctionWrapper _doneEvent
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it. More...
 

Detailed Description

Model for a receive link.

Definition at line 152 of file dist_etherlink.hh.

Constructor & Destructor Documentation

◆ RxLink()

gem5::DistEtherLink::RxLink::RxLink ( const std::string &  name,
DistEtherLink p,
Tick  delay,
EtherDump d 
)
inline

Definition at line 169 of file dist_etherlink.hh.

References rxDone().

◆ ~RxLink()

gem5::DistEtherLink::RxLink::~RxLink ( )
inline

Definition at line 173 of file dist_etherlink.hh.

Member Function Documentation

◆ doneEvent()

const EventFunctionWrapper* gem5::DistEtherLink::RxLink::doneEvent ( ) const
inline

Done events will be scheduled by DistIface (so we need the accessor)

Definition at line 182 of file dist_etherlink.hh.

References _doneEvent.

Referenced by gem5::DistEtherLink::init().

◆ rxDone()

void gem5::DistEtherLink::RxLink::rxDone ( )
protected

Receive done callback method.

Called from doneEvent.

Definition at line 156 of file dist_etherlink.cc.

References DDUMP, gem5::DistEtherLink::distIface, DPRINTF, gem5::statistics::dump(), gem5::DistEtherLink::localIface, gem5::DistIface::packetIn(), and gem5::EtherInt::sendPacket().

Referenced by RxLink().

◆ setDistInt()

void gem5::DistEtherLink::RxLink::setDistInt ( DistIface m)

Register our dist interface to talk to the peer gem5 processes.

Definition at line 149 of file dist_etherlink.cc.

References gem5::DistEtherLink::Link::distIface, and gem5::ArmISA::m.

Referenced by gem5::DistEtherLink::LocalIface::LocalIface().

Member Data Documentation

◆ _doneEvent

EventFunctionWrapper gem5::DistEtherLink::RxLink::_doneEvent
protected

Definition at line 165 of file dist_etherlink.hh.

Referenced by doneEvent().

◆ linkDelay

Tick gem5::DistEtherLink::RxLink::linkDelay
protected

Transmission delay for the simulated Ethernet link.

Definition at line 159 of file dist_etherlink.hh.


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

Generated on Tue Sep 21 2021 12:27:29 for gem5 by doxygen 1.8.17