static void prequeue_msgbuf()

in listener.c [53:68]


static void prequeue_msgbuf(struct ncrx_listener *listener, struct msg_buf *buf)
{
	struct ncrx_prequeue *prequeue;
	unsigned long hash;

	hash = hash_srcaddr(&buf->src.sin6_addr);
	prequeue = &listener->prequeues[hash % listener->nr_workers];

	if (prequeue->queue_head)
		prequeue->queue_tail->next = buf;
	else
		prequeue->queue_head = buf;

	prequeue->queue_tail = buf;
	prequeue->count++;
}