P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFN::SnapshotFieldIdTable Class Reference

#include <bfruntime_arch_handler.h>

Public Types

using Id = uint32_t
 

Public Member Functions

Id assignId (const std::string &name)
 

Detailed Description

This is used to ensure that the same field (identified by name) in ingress and egress gets the same id. This is meant as a convenience for BFRT users but maybe should not be relied on. In particular, if the P4 programmer gives a different name to the "hdr" parameter for ingress and egress, then the fully-qualified names will be different for the "same" field and therefor the ids will be different.