diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-05-15 17:24:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-17 19:46:54 +0300 |
commit | 021a17ed796b62383f7623f4fea73787abddad77 (patch) | |
tree | 6e6b0d4339e495a4c94e8489f3b06a00033fa435 /include/linux/skb_array.h | |
parent | 96009c7d500efdd5534e83b2e3eb2c58d4b137ae (diff) | |
download | linux-021a17ed796b62383f7623f4fea73787abddad77.tar.xz |
pfifo_fast: drop unneeded additional lock on dequeue
After the previous patch, for NOLOCK qdiscs, q->seqlock is
always held when the dequeue() is invoked, we can drop
any additional locking to protect such operation.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skb_array.h')
-rw-r--r-- | include/linux/skb_array.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index a6b6e8bb3d7b..62d9b0a6329f 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -97,6 +97,11 @@ static inline bool skb_array_empty_any(struct skb_array *a) return ptr_ring_empty_any(&a->ring); } +static inline struct sk_buff *__skb_array_consume(struct skb_array *a) +{ + return __ptr_ring_consume(&a->ring); +} + static inline struct sk_buff *skb_array_consume(struct skb_array *a) { return ptr_ring_consume(&a->ring); |