├── .bazelrc ├── .github └── workflows │ ├── ci-build.yml │ └── ci-test.yml ├── .gitignore ├── BUILD.bazel ├── LICENSE ├── README.md ├── WORKSPACE.bazel ├── docs ├── code-of-conduct.md └── contributing.md ├── format.sh ├── gutil ├── BUILD.bazel ├── assign_or_return.md ├── collections.h ├── proto.cc ├── proto.h ├── proto_matchers.h ├── proto_matchers_test.cc ├── status.cc ├── status.h ├── status_matchers.h ├── status_matchers_test.cc ├── status_test.cc └── testing.h ├── p4_pdpi ├── BUILD.bazel ├── connection_management.cc ├── connection_management.h ├── entity_management.cc ├── entity_management.h ├── internal │ ├── BUILD.bazel │ └── ordered_protobuf_map.h ├── ir.cc ├── ir.h ├── ir.proto ├── pd.cc ├── pd.h ├── pdgen.bzl ├── pdgen.cc ├── pdgenlib.cc ├── pdgenlib.h ├── testing │ ├── BUILD.bazel │ ├── diff_test.bzl │ ├── helper_function_test.cc │ ├── info_test.cc │ ├── packet_io_test.cc │ ├── rpc_test.cc │ ├── table_entry_test.cc │ ├── test_helper.h │ └── testdata │ │ ├── BUILD.bazel │ │ ├── hex_string.expected │ │ ├── info.expected │ │ ├── main.p4 │ │ ├── main_p4_pd.expected │ │ ├── packet_io.expected │ │ ├── rpc.expected │ │ └── table_entry.expected └── utils │ ├── BUILD.bazel │ ├── annotation_parser.cc │ ├── annotation_parser.h │ ├── annotation_parser_test.cc │ ├── hex_string.cc │ ├── hex_string.h │ ├── hex_string_test.cc │ ├── ir.cc │ ├── ir.h │ ├── ir_test.cc │ ├── pd.cc │ └── pd.h ├── p4_pdpi_deps.bzl └── update_golden_files.sh /.bazelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/.bazelrc -------------------------------------------------------------------------------- /.github/workflows/ci-build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/.github/workflows/ci-build.yml -------------------------------------------------------------------------------- /.github/workflows/ci-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/.github/workflows/ci-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Bazel build system. 2 | bazel* 3 | 4 | # JetBrains IDE. 5 | .idea 6 | .clwb 7 | -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/BUILD.bazel -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/README.md -------------------------------------------------------------------------------- /WORKSPACE.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/WORKSPACE.bazel -------------------------------------------------------------------------------- /docs/code-of-conduct.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/docs/code-of-conduct.md -------------------------------------------------------------------------------- /docs/contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/docs/contributing.md -------------------------------------------------------------------------------- /format.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/format.sh -------------------------------------------------------------------------------- /gutil/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/BUILD.bazel -------------------------------------------------------------------------------- /gutil/assign_or_return.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/assign_or_return.md -------------------------------------------------------------------------------- /gutil/collections.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/collections.h -------------------------------------------------------------------------------- /gutil/proto.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/proto.cc -------------------------------------------------------------------------------- /gutil/proto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/proto.h -------------------------------------------------------------------------------- /gutil/proto_matchers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/proto_matchers.h -------------------------------------------------------------------------------- /gutil/proto_matchers_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/proto_matchers_test.cc -------------------------------------------------------------------------------- /gutil/status.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/status.cc -------------------------------------------------------------------------------- /gutil/status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/status.h -------------------------------------------------------------------------------- /gutil/status_matchers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/status_matchers.h -------------------------------------------------------------------------------- /gutil/status_matchers_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/status_matchers_test.cc -------------------------------------------------------------------------------- /gutil/status_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/status_test.cc -------------------------------------------------------------------------------- /gutil/testing.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/gutil/testing.h -------------------------------------------------------------------------------- /p4_pdpi/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/BUILD.bazel -------------------------------------------------------------------------------- /p4_pdpi/connection_management.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/connection_management.cc -------------------------------------------------------------------------------- /p4_pdpi/connection_management.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/connection_management.h -------------------------------------------------------------------------------- /p4_pdpi/entity_management.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/entity_management.cc -------------------------------------------------------------------------------- /p4_pdpi/entity_management.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/entity_management.h -------------------------------------------------------------------------------- /p4_pdpi/internal/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/internal/BUILD.bazel -------------------------------------------------------------------------------- /p4_pdpi/internal/ordered_protobuf_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/internal/ordered_protobuf_map.h -------------------------------------------------------------------------------- /p4_pdpi/ir.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/ir.cc -------------------------------------------------------------------------------- /p4_pdpi/ir.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/ir.h -------------------------------------------------------------------------------- /p4_pdpi/ir.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/ir.proto -------------------------------------------------------------------------------- /p4_pdpi/pd.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pd.cc -------------------------------------------------------------------------------- /p4_pdpi/pd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pd.h -------------------------------------------------------------------------------- /p4_pdpi/pdgen.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pdgen.bzl -------------------------------------------------------------------------------- /p4_pdpi/pdgen.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pdgen.cc -------------------------------------------------------------------------------- /p4_pdpi/pdgenlib.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pdgenlib.cc -------------------------------------------------------------------------------- /p4_pdpi/pdgenlib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/pdgenlib.h -------------------------------------------------------------------------------- /p4_pdpi/testing/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/BUILD.bazel -------------------------------------------------------------------------------- /p4_pdpi/testing/diff_test.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/diff_test.bzl -------------------------------------------------------------------------------- /p4_pdpi/testing/helper_function_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/helper_function_test.cc -------------------------------------------------------------------------------- /p4_pdpi/testing/info_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/info_test.cc -------------------------------------------------------------------------------- /p4_pdpi/testing/packet_io_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/packet_io_test.cc -------------------------------------------------------------------------------- /p4_pdpi/testing/rpc_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/rpc_test.cc -------------------------------------------------------------------------------- /p4_pdpi/testing/table_entry_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/table_entry_test.cc -------------------------------------------------------------------------------- /p4_pdpi/testing/test_helper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/test_helper.h -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/BUILD.bazel -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/hex_string.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/hex_string.expected -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/info.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/info.expected -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/main.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/main.p4 -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/main_p4_pd.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/main_p4_pd.expected -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/packet_io.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/packet_io.expected -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/rpc.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/rpc.expected -------------------------------------------------------------------------------- /p4_pdpi/testing/testdata/table_entry.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/testing/testdata/table_entry.expected -------------------------------------------------------------------------------- /p4_pdpi/utils/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/BUILD.bazel -------------------------------------------------------------------------------- /p4_pdpi/utils/annotation_parser.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/annotation_parser.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/annotation_parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/annotation_parser.h -------------------------------------------------------------------------------- /p4_pdpi/utils/annotation_parser_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/annotation_parser_test.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/hex_string.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/hex_string.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/hex_string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/hex_string.h -------------------------------------------------------------------------------- /p4_pdpi/utils/hex_string_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/hex_string_test.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/ir.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/ir.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/ir.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/ir.h -------------------------------------------------------------------------------- /p4_pdpi/utils/ir_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/ir_test.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/pd.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/pd.cc -------------------------------------------------------------------------------- /p4_pdpi/utils/pd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi/utils/pd.h -------------------------------------------------------------------------------- /p4_pdpi_deps.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/p4_pdpi_deps.bzl -------------------------------------------------------------------------------- /update_golden_files.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/p4-pdpi/HEAD/update_golden_files.sh --------------------------------------------------------------------------------