Skip to content

Commit

Permalink
Merge pull request #91 from cxz66666/fix_proc_type_err
Browse files Browse the repository at this point in the history
bugfix: fix dpdk_proc_type variable set error
  • Loading branch information
anujkaliaiitd authored Dec 13, 2022
2 parents c516856 + 285125f commit 10455b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transport_impl/dpdk/dpdk_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ DpdkTransport::DpdkTransport(uint16_t sm_udp_port, uint8_t rpc_id,
if (g_dpdk_initialized) {
ERPC_INFO("DPDK transport for Rpc %u skipping DPDK EAL initialization.\n",
rpc_id);
dpdk_proc_type_ = ((rte_eal_process_type() == RTE_PROC_PRIMARY)
? DpdkProcType::kPrimary
: DpdkProcType::kSecondary);
} else {
ERPC_INFO("DPDK transport for Rpc %u initializing DPDK EAL.\n", rpc_id);

Expand Down

0 comments on commit 10455b3

Please sign in to comment.