Set _incomingPacketConcurrency to 1

This commit is contained in:
Joseph Henry
2019-03-07 10:59:50 -08:00
parent 3b967c1a12
commit 3792683cc6

View File

@@ -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);