diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2018-06-01 01:53:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-04 20:30:02 +0200 |
commit | 044ddc520cf1f009f4a78cc6392aaac507fa4612 (patch) | |
tree | 9c662f9a6c31c0c2d92765e31a3d12d423f75cac /src/queueing.h | |
parent | WIP6 (diff) | |
download | wireguard-monolithic-historical-044ddc520cf1f009f4a78cc6392aaac507fa4612.tar.xz wireguard-monolithic-historical-044ddc520cf1f009f4a78cc6392aaac507fa4612.zip |
WIP7
Diffstat (limited to 'src/queueing.h')
-rw-r--r-- | src/queueing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queueing.h b/src/queueing.h index 51d0b8e..0280a35 100644 --- a/src/queueing.h +++ b/src/queueing.h @@ -120,10 +120,10 @@ static inline int queue_enqueue_per_device_and_peer(struct crypt_queue *device_q int cpu; atomic_set(&PACKET_CB(skb)->state, PACKET_STATE_UNCRYPTED); - if (unlikely(!ck_ring_enqueue_mpmc(&peer_queue->ring, skb))) + if (unlikely(ck_ring_enqueue_mpmc(&peer_queue->ring, skb))) return -ENOSPC; cpu = cpumask_next_online(next_cpu); - if (unlikely(!ck_ring_enqueue_mpmc(&device_queue->ring, skb))) + if (unlikely(ck_ring_enqueue_mpmc(&device_queue->ring, skb))) return -EPIPE; queue_work_on(cpu, wq, &per_cpu_ptr(device_queue->worker, cpu)->work); return 0; |