From a284c4d8caa4b35a3771eb8d981d73a5f366baca Mon Sep 17 00:00:00 2001 From: Satish Pitchikala Date: Wed, 13 Sep 2023 09:54:13 +0530 Subject: [PATCH] addressing review comments --- clients/p4rt_perf_test/p4rt_perf_session.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/clients/p4rt_perf_test/p4rt_perf_session.cc b/clients/p4rt_perf_test/p4rt_perf_session.cc index 6e2b4db0..38caccde 100644 --- a/clients/p4rt_perf_test/p4rt_perf_session.cc +++ b/clients/p4rt_perf_test/p4rt_perf_session.cc @@ -154,8 +154,6 @@ absl::Status SendWriteRequest(P4rtSession* session, ::p4::v1::TableEntry* SetupTableEntryToInsert(P4rtSession* session, ::p4::v1::WriteRequest* req) { - req->set_device_id(session->DeviceId()); - *req->mutable_election_id() = session->ElectionId(); auto* update = req->add_updates(); update->set_type(::p4::v1::Update::INSERT); return update->mutable_entity()->mutable_table_entry(); @@ -163,8 +161,6 @@ ::p4::v1::TableEntry* SetupTableEntryToInsert(P4rtSession* session, ::p4::v1::TableEntry* SetupTableEntryToModify(P4rtSession* session, ::p4::v1::WriteRequest* req) { - req->set_device_id(session->DeviceId()); - *req->mutable_election_id() = session->ElectionId(); auto* update = req->add_updates(); update->set_type(::p4::v1::Update::MODIFY); return update->mutable_entity()->mutable_table_entry(); @@ -172,8 +168,6 @@ ::p4::v1::TableEntry* SetupTableEntryToModify(P4rtSession* session, ::p4::v1::TableEntry* SetupTableEntryToDelete(P4rtSession* session, ::p4::v1::WriteRequest* req) { - req->set_device_id(session->DeviceId()); - *req->mutable_election_id() = session->ElectionId(); auto* update = req->add_updates(); update->set_type(::p4::v1::Update::DELETE); return update->mutable_entity()->mutable_table_entry();