Set _incomingPacketConcurrency to 1
This commit is contained in:
@@ -272,7 +272,11 @@ public:
|
||||
_ports[1] = 0;
|
||||
_ports[2] = 0;
|
||||
|
||||
_incomingPacketConcurrency = std::max((unsigned long)1,std::min((unsigned long)16,(unsigned long)std::thread::hardware_concurrency()));
|
||||
/* Packet input concurrency is disabled intentially since it
|
||||
would force the user-space network stack to constantly re-order
|
||||
frames, resulting in lower RX performance */
|
||||
_incomingPacketConcurrency = 1;
|
||||
// std::max((unsigned long)1,std::min((unsigned long)16,(unsigned long)std::thread::hardware_concurrency()));
|
||||
char *envPool = std::getenv("INCOMING_PACKET_CONCURRENCY");
|
||||
if (envPool != NULL) {
|
||||
int tmp = atoi(envPool);
|
||||
|
||||
Reference in New Issue
Block a user