bmv2
Designing your own switch target with bmv2
Public Types | List of all members
bm::PortMonitorIface Class Referenceabstract

Used by DevMgr to monitor the ports attached to the switch. More...

Public Types

enum  PortStatus
 Represents the status of a port. More...
 
using port_t = uint32_t
 Representation of a port number. More...
 
using PortStatusCb = std::function< void(port_t port_num, const PortStatus status)>
 Signature of the cb function to call when a port status changes. More...
 

Detailed Description

Used by DevMgr to monitor the ports attached to the switch.

Member Typedef Documentation

◆ port_t

using bm::PortMonitorIface::port_t = uint32_t

Representation of a port number.

◆ PortStatusCb

using bm::PortMonitorIface::PortStatusCb = std::function<void(port_t port_num, const PortStatus status)>

Signature of the cb function to call when a port status changes.

Member Enumeration Documentation

◆ PortStatus

Represents the status of a port.


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