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
7
8enum PacketDirection { NET_TO_HOST, HOST_TO_NET };
9
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
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_ */
Definition p4tools/modules/testgen/targets/pna/constants.h:10
static const IR::Member DROP_VAR
PNA-internal drop variable.
Definition p4tools/modules/testgen/targets/pna/constants.h:20
static const IR::Member OUTPUT_PORT_VAR
PNA-internal egress port variable.
Definition p4tools/modules/testgen/targets/pna/constants.h:22
static constexpr const char * MATCH_KIND_RANGE
Entries that can match a range.
Definition p4tools/modules/testgen/targets/pna/constants.h:17
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
static constexpr const char * MATCH_KIND_OPT
Match bits exactly or not at all.
Definition p4tools/modules/testgen/targets/pna/constants.h:13
static constexpr int PORT_BIT_WIDTH
Port width in bits.
Definition p4tools/modules/testgen/targets/pna/constants.h:26
static const IR::Member PARSER_ERROR
PNA-internal parser error label.
Definition p4tools/modules/testgen/targets/pna/constants.h:24
variabless are variables that can be controlled and set by P4Testgen.
Definition p4tools/modules/testgen/targets/pna/constants.h:30
static const IR::SymbolicVariable DIRECTION
The input direction.
Definition p4tools/modules/testgen/targets/pna/constants.h:33
Inja.
Definition pna/backend/metadata/metadata.cpp:24