aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/queueing.c
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2018-06-10 21:45:16 +0200
committerThomas Gschwantner <tharre3@gmail.com>2018-06-11 23:27:49 +0200
commit887579f109f1e72fb83bd0f8bf6f447861736f9d (patch)
treeebd39e719656b944f837861f3abd559ac40b5fec /src/queueing.c
parentmpmc_ptr_ring: calculate mask once and store it (diff)
downloadwireguard-monolithic-historical-887579f109f1e72fb83bd0f8bf6f447861736f9d.tar.xz
wireguard-monolithic-historical-887579f109f1e72fb83bd0f8bf6f447861736f9d.zip
mpmc_ptr_ring: add selftest
Diffstat (limited to 'src/queueing.c')
-rw-r--r--src/queueing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queueing.c b/src/queueing.c
index 80048c9..2b22c18 100644
--- a/src/queueing.c
+++ b/src/queueing.c
@@ -44,3 +44,5 @@ void packet_queue_free(struct crypt_queue *queue, bool multicore)
WARN_ON(!mpmc_ptr_ring_empty(&queue->ring));
mpmc_ptr_ring_cleanup(&queue->ring, NULL);
}
+
+#include "selftest/mpmc_ring.h"