mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
				synced 2025-11-03 13:43:18 +00:00 
			
		
		
		
	ms: reduce rx burst queue size
This should be fine, because we can at most receive 1.5 bursts of data at once and produce 2 bursts with previous data, so if this is insufficent the usb buffers are late or the upper layer is stuck and we're in trouble anyway. Change-Id: Ifb8bf2894c87e4234e3d3f65d66c1e98c8f63c53
This commit is contained in:
		@@ -44,7 +44,6 @@
 | 
			
		||||
#include "threadpool.h"
 | 
			
		||||
 | 
			
		||||
const unsigned int ONE_TS_BURST_LEN = (3 + 58 + 26 + 58 + 3 + 8.25) * 4 /*sps*/;
 | 
			
		||||
const unsigned int NUM_RXQ_FRAMES = 1; // rx thread <-> upper rx queue
 | 
			
		||||
const unsigned int SCH_LEN_SPS = (ONE_TS_BURST_LEN * 8 /*ts*/ * 12 /*frames*/);
 | 
			
		||||
 | 
			
		||||
template <typename T>
 | 
			
		||||
@@ -133,7 +132,7 @@ struct one_burst {
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
using rx_queue_t = spsc_cond_timeout<8 * NUM_RXQ_FRAMES, one_burst, true, false>;
 | 
			
		||||
using rx_queue_t = spsc_cond_timeout<4, one_burst, true, false>;
 | 
			
		||||
 | 
			
		||||
enum class SCH_STATE { SEARCHING, FOUND };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user