/* Returns 1 if queue is unable to accept message, 0 otherwise  */
static int rx_queue_full(struct tipc_msg *msg, u32 queue_size, u32 base)
/* Returns 1 if queue is unable to accept message, 0 otherwise  */
static int rx_queue_full(struct tipc_msg *msg, u32 queue_size, u32 base)
{
	u32 threshold;
	u32 imp = msg_importance(msg);
	if (imp == TIPC_LOW_IMPORTANCE)
		threshold = base;
	else if (imp == TIPC_MEDIUM_IMPORTANCE)
		threshold = base * 2;
	else if (imp == TIPC_HIGH_IMPORTANCE)
		threshold = base * 100;
	else
		return 0;
	if (msg_connected(msg))
		threshold *= 4;
	return (queue_size >= threshold);
}