P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFN::Wred Struct Reference

The information about a Wred instance which is needed to serialize it. More...

#include <bfruntime_arch_handler.h>

Static Public Member Functions

static std::optional< Wredfrom (const IR::ExternBlock *instance)
 
static std::optional< WredfromDirect (const P4::ExternInstance &instance, const IR::P4Table *table)
 

Public Attributes

const IR::IAnnotated * annotations
 
uint8_t dropValue
 
const cstring name
 
uint8_t noDropValue
 
int64_t size
 
const std::optional< cstringtable
 If not none, the instance is a direct resource associated with table.
 

Detailed Description

The information about a Wred instance which is needed to serialize it.

Member Function Documentation

◆ from()

static std::optional< Wred > BFN::Wred::from ( const IR::ExternBlock * instance)
inlinestatic
Returns
the information required to serialize an instance of Wred or std::nullopt in case of error.

◆ fromDirect()

static std::optional< Wred > BFN::Wred::fromDirect ( const P4::ExternInstance & instance,
const IR::P4Table * table )
inlinestatic
Returns
the information required to serialize an instance of a direct Wred or std::nullopt in case of error.