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

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

#include <bfruntime.h>

Public Types

enum  Unit { UNSPECIFIED = 0 , BYTES = 1 , PACKETS = 2 , BOTH = 3 }
 

Static Public Member Functions

static std::optional< Counterfrom (const p4configv1::Counter &counterInstance)
 
static std::optional< CounterfromDirect (const p4configv1::DirectCounter &counterInstance)
 

Public Attributes

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

Detailed Description

Common counter representation between PSA and other architectures.