P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::BFRT::BFRuntimeGenerator::Meter Struct Reference

Common meter representation between PSA and other architectures. More...

#include <bfruntime.h>

Public Types

enum  Type { COLOR_UNAWARE = 0 , COLOR_AWARE = 1 }
 
enum  Unit { UNSPECIFIED = 0 , BYTES = 1 , PACKETS = 2 }
 

Static Public Member Functions

static std::optional< Meterfrom (const p4configv1::Meter &meterInstance)
 
static std::optional< MeterfromDirect (const p4configv1::DirectMeter &meterInstance)
 

Public Attributes

Util::JsonArrayannotations
 
P4Id id
 
std::string name
 
int64_t size
 
Unit unit
 

Detailed Description

Common meter representation between PSA and other architectures.