P4C
The P4 Compiler
Loading...
Searching...
No Matches
p4tools/modules/testgen/targets/pna/constants.h
1
#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_CONSTANTS_H_
2
#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_CONSTANTS_H_
3
4
#include "ir/ir.h"
5
6
namespace
P4::P4Tools::P4Testgen::Pna
{
7
8
enum
PacketDirection { NET_TO_HOST, HOST_TO_NET };
9
10
class
PnaConstants
{
11
public
:
13
static
constexpr
const
char
*
MATCH_KIND_OPT
=
"optional"
;
15
static
constexpr
const
char
*
MATCH_KIND_SELECTOR
=
"selector"
;
17
static
constexpr
const
char
*
MATCH_KIND_RANGE
=
"range"
;
18
20
static
const
IR::Member
DROP_VAR
;
22
static
const
IR::Member
OUTPUT_PORT_VAR
;
24
static
const
IR::Member
PARSER_ERROR
;
26
static
constexpr
int
PORT_BIT_WIDTH
= 32;
27
};
28
30
class
PnaSymbolicVars
{
31
public
:
33
static
const
IR::SymbolicVariable
DIRECTION
;
34
};
35
36
}
// namespace P4::P4Tools::P4Testgen::Pna
37
38
#endif
/* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_CONSTANTS_H_ */
P4::P4Tools::P4Testgen::Pna::PnaConstants
Definition
p4tools/modules/testgen/targets/pna/constants.h:10
P4::P4Tools::P4Testgen::Pna::PnaConstants::DROP_VAR
static const IR::Member DROP_VAR
PNA-internal drop variable.
Definition
p4tools/modules/testgen/targets/pna/constants.h:20
P4::P4Tools::P4Testgen::Pna::PnaConstants::OUTPUT_PORT_VAR
static const IR::Member OUTPUT_PORT_VAR
PNA-internal egress port variable.
Definition
p4tools/modules/testgen/targets/pna/constants.h:22
P4::P4Tools::P4Testgen::Pna::PnaConstants::MATCH_KIND_RANGE
static constexpr const char * MATCH_KIND_RANGE
Entries that can match a range.
Definition
p4tools/modules/testgen/targets/pna/constants.h:17
P4::P4Tools::P4Testgen::Pna::PnaConstants::MATCH_KIND_SELECTOR
static constexpr const char * MATCH_KIND_SELECTOR
A match that is used as an argument for the selector.
Definition
p4tools/modules/testgen/targets/pna/constants.h:15
P4::P4Tools::P4Testgen::Pna::PnaConstants::MATCH_KIND_OPT
static constexpr const char * MATCH_KIND_OPT
Match bits exactly or not at all.
Definition
p4tools/modules/testgen/targets/pna/constants.h:13
P4::P4Tools::P4Testgen::Pna::PnaConstants::PORT_BIT_WIDTH
static constexpr int PORT_BIT_WIDTH
Port width in bits.
Definition
p4tools/modules/testgen/targets/pna/constants.h:26
P4::P4Tools::P4Testgen::Pna::PnaConstants::PARSER_ERROR
static const IR::Member PARSER_ERROR
PNA-internal parser error label.
Definition
p4tools/modules/testgen/targets/pna/constants.h:24
P4::P4Tools::P4Testgen::Pna::PnaSymbolicVars
variabless are variables that can be controlled and set by P4Testgen.
Definition
p4tools/modules/testgen/targets/pna/constants.h:30
P4::P4Tools::P4Testgen::Pna::PnaSymbolicVars::DIRECTION
static const IR::SymbolicVariable DIRECTION
The input direction.
Definition
p4tools/modules/testgen/targets/pna/constants.h:33
P4::P4Tools::P4Testgen::Pna
Inja.
Definition
pna/backend/metadata/metadata.cpp:24
backends
p4tools
modules
testgen
targets
pna
constants.h
Generated by
1.12.0