20#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_CONSTANTS_H_
21#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_CONSTANTS_H_
27namespace P4::P4Tools::P4Testgen::Tofino {
32 static constexpr int64_t PTF_INPUT_PKT_MIN_SIZE = 512;
33 static constexpr int64_t PTF_OUTPUT_PKT_MIN_SIZE = 240;
55 static constexpr int PARSER_ERROR_OK = 0x0000;
56 static constexpr int PARSER_ERROR_NO_MATCH = 0x0001;
57 static constexpr int PARSER_ERROR_PARTIAL_HDR = 0x0002;
58 static constexpr int PARSER_ERROR_CTR_RANGE = 0x0004;
59 static constexpr int PARSER_ERROR_TIMEOUT_USER = 0x0008;
60 static constexpr int PARSER_ERROR_TIMEOUT_HW = 0x0010;
61 static constexpr int PARSER_ERROR_SRC_EXT = 0x0020;
62 static constexpr int PARSER_ERROR_DST_CONT = 0x0040;
63 static constexpr int PARSER_ERROR_PHV_OWNER = 0x0080;
64 static constexpr int PARSER_ERROR_MULTIWRITE = 0x0100;
65 static constexpr int PARSER_ERROR_ARAM_MBE = 0x0400;
66 static constexpr int PARSER_ERROR_FCS = 0x0800;
68 static constexpr int PORT_METADATA_SIZE = 64;
70 static constexpr int64_t ETH_FCS_SIZE = 32;
72 static const IR::Member INGRESS_DROP_VAR;
73 static const IR::Member EGRESS_DROP_VAR;
81 static constexpr int PARSER_ERROR_OK = 0x0000;
82 static constexpr int PARSER_ERROR_NO_MATCH = 0x0001;
83 static constexpr int PARSER_ERROR_PARTIAL_HDR = 0x0002;
84 static constexpr int PARSER_ERROR_CTR_RANGE = 0x0004;
85 static constexpr int PARSER_ERROR_TIMEOUT_USER = 0x0008;
86 static constexpr int PARSER_ERROR_TIMEOUT_HW = 0x0010;
87 static constexpr int PARSER_ERROR_SRC_EXT = 0x0020;
88 static constexpr int PARSER_ERROR_DST_CONT = 0x0040;
89 static constexpr int PARSER_ERROR_PHV_OWNER = 0x0080;
90 static constexpr int PARSER_ERROR_MULTIWRITE = 0x0100;
91 static constexpr int PARSER_ERROR_ARAM_MBE = 0x0400;
92 static constexpr int PARSER_ERROR_FCS = 0x0800;
93 static constexpr int PARSER_ERROR_CSUM_MBE = 0x1000;
95 static constexpr int PORT_METADATA_SIZE = 192;
97 static constexpr int64_t ETH_FCS_SIZE = 32;
99 static const IR::Member INGRESS_DROP_VAR;
100 static const IR::Member EGRESS_DROP_VAR;