-
Notifications
You must be signed in to change notification settings - Fork 29
ACA task framework refactoring #275
ACA task framework refactoring #275
Conversation
… in order to prevent deadlock
…essage_callback full capacity of receiving packets
This reverts commit 42716a1.
| // Create a marl scheduler using all the logical processors available to the process. | ||
| // Bind this scheduler to the main thread so we can call marl::schedule() | ||
| marl::Scheduler::Config cfg_bind_hw_cores; | ||
| cfg_bind_hw_cores.setWorkerThreadCount(thread_pools_size * 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the worker thread count to be thread_pool_size * 2, instead of a fixed number.
…g flag to false in aca-machine-init
lfu-ps
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| If you intent to store it somewhere, it is advised to make a copy of it. | ||
| */ | ||
| ACA_On_Demand_Engine::get_instance().parse_packet(in_port, pin.packet); | ||
| // ACA_On_Demand_Engine::get_instance().parse_packet(in_port, pin.packet); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zzxgzgz Any specific reason that the on demand engine is disabled here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zzxgzgz Any specific reason that the on demand engine is disabled here?
This code path is not active now. The parse_packet will now be called in of_controller.cpp, inside of the message_callback function, when there is a packet_in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this PR does:
Development/testing is still ongoing, new findings/test results will be posted when available.