Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into symbolic_import_branch_77
  • Loading branch information
VSuryaprasad-HCL committed Nov 6, 2024
2 parents ca1adab + 36eb891 commit 6e17672
Show file tree
Hide file tree
Showing 52 changed files with 6,697 additions and 2,590 deletions.
2 changes: 1 addition & 1 deletion dvaas/packet_injection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ absl::StatusOr<PacketTestRuns> SendTestPacketsAndCollectOutputs(
const Packet& packet = packet_test_vector.input().packet();

// Inject to egress of control switch.
RETURN_IF_ERROR(gpins::InjectEgressPacket(
RETURN_IF_ERROR(pins::InjectEgressPacket(
packet.port(), absl::HexStringToBytes(packet.hex()),
control_ir_p4info, &control_switch, injection_delay));
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/pins_control_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ absl::Status PinsControlDevice::SendPacket(
"No P4RuntimeSession exists; Likely failed to establish another "
"P4RuntimeSession.");
}
return gpins::InjectEgressPacket(interface_name_to_port_id_[interface],
return pins::InjectEgressPacket(interface_name_to_port_id_[interface],
std::string(packet), ir_p4_info_,
control_session_.get(), packet_delay);
}
Expand Down
271 changes: 0 additions & 271 deletions p4_fuzzer/fuzzer_tests.cc

This file was deleted.

44 changes: 42 additions & 2 deletions p4_symbolic/ir/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,53 @@ cc_library(
"ir.h",
],
deps = [
":cfg",
":ir_cc_proto",
":table_entries",
"//gutil:status",
"//p4_symbolic/bmv2:bmv2_cc_proto",
"@com_github_p4lang_p4runtime//:p4info_cc_proto",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:node_hash_map",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
],
)

cc_library(
name = "cfg",
srcs = [
"cfg.cc",
"ir.h", # needed for the definition of EndOfPipeline
],
hdrs = ["cfg.h"],
deps = [
":ir_cc_proto",
"//gutil:status",
"//p4_symbolic/bmv2:bmv2_cc_proto",
"@com_google_absl//absl/container:btree",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:node_hash_map",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
],
)

cc_test(
name = "cfg_test",
srcs = ["cfg_test.cc"],
deps = [
":cfg",
":ir",
":ir_cc_proto",
"//gutil:proto",
"//gutil:status_matchers",
"@com_google_absl//absl/container:btree",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_protobuf//:protobuf",
"@com_google_googletest//:gtest_main",
],
)

Expand Down
Loading

0 comments on commit 6e17672

Please sign in to comment.