hololink::emulation::RoCEv2DataPlane

View as Markdown

The DataPlane implementation for RoCEv2 UDP transport.

#include <hololink/emulation/rocev2_data_plane.hpp>

Inherits from: hololink::emulation::DataPlane (public)


Constructors

RoCEv2DataPlane

hololink::emulation::RoCEv2DataPlane::RoCEv2DataPlane(
HSBEmulator &hsb_emulator,
const IPAddress &source_ip,
uint8_t data_plane_id,
uint8_t sensor_id
)

Construct a new RoCEv2DataPlane object.

python:

def __init__(self: hemu.RoCEv2DataPlane, hsb_emulator: hemu.HSBEmulator, source_ip: hemu.IPAddress, data_plane_id: int, sensor_id: int)

Parameters

hsb_emulator
HSBEmulator &

The HSBEmulator object to attach to.

source_ip
const IPAddress &

The IP address of the DataPlane.

data_plane_id
uint8_t

The identifying index of the DataPlane.

sensor_id
uint8_t

The identifying index of the sensor interface associated with the DataPlane.

Destructor

~RoCEv2DataPlane

hololink::emulation::RoCEv2DataPlane::~RoCEv2DataPlane()

Methods

update_metadata

void hololink::emulation::RoCEv2DataPlane::update_metadata() override

Update the TransmissionMetadata for the RoCEv2DataPlane.

Only one thread may call RoCEv2DataPlane::send at a time. DataPlane::send() ensures thread safety.


Member variables

NameTypeDescription
page_uint32_t