Files
dofs/docs/network/switch/switch_buffer.md

815 B

network/switch/switch_buffer.h

class NetworkSwitch — public interface

virtual ~SwitchBuffer() = default;

Bytes buffer_size() const noexcept;

SwitchBufferType type() const noexcept;

uint16_t port_cnt() const noexcept;

Bytes port_buffered(PortId p) const noexcept;

const std::vector<Bytes> &ports_buffered() const noexcept;

uint8_t share_ctrl() const noexcept;

uint8_t share_mice() const noexcept;

uint8_t share_elephant() const noexcept;

void set_share_ctrl(uint8_t pct) noexcept;

void set_share_mice(uint8_t pct) noexcept;

void set_share_elephant(uint8_t pct) noexcept;

const Simulator *simulator() const noexcept;

const NetworkSwitch *owner() const noexcept;