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-22 14:52:53 +0200
commit4d942715682167ad905657c1fbea08f26d5b824e (patch)
treea9ee03491c9db23c6c00772221d41a3a49f668b3 /src/queueing.c
parentmpmc_ptr_ring: calculate mask once and store it (diff)
downloadwireguard-monolithic-historical-4d942715682167ad905657c1fbea08f26d5b824e.tar.xz
wireguard-monolithic-historical-4d942715682167ad905657c1fbea08f26d5b824e.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"