summaryrefslogtreecommitdiffhomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-16 02:21:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-16 02:24:23 +0200
commita63830c6bbbf251765a5caee4111835048665f23 (patch)
tree0104504b899b0c42aa7589fe7f5a80a96b5daba5 /src/receive.c
parentfaa6c83426891059b2648b2b799e64bbfaf39a51 (diff)
queueing: remove useless spinlocks on sc
Since these are the only consumers, there's no need for locking. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/receive.c b/src/receive.c
index 27d3d04..99d6b19 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -378,7 +378,6 @@ void packet_rx_worker(struct work_struct *work)
bool free;
local_bh_disable();
- spin_lock_bh(&queue->ring.consumer_lock);
while ((skb = __ptr_ring_peek(&queue->ring)) != NULL && (state = atomic_read(&PACKET_CB(skb)->state)) != PACKET_STATE_UNCRYPTED) {
__ptr_ring_discard_one(&queue->ring);
peer = PACKET_PEER(skb);
@@ -406,7 +405,6 @@ next:
if (unlikely(free))
dev_kfree_skb(skb);
}
- spin_unlock_bh(&queue->ring.consumer_lock);
local_bh_enable();
}