projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb582b
)
skb_array: use __ptr_ring_empty
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 25 Jan 2018 23:36:36 +0000
(
01:36
+0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 29 Jan 2018 17:02:54 +0000
(12:02 -0500)
__skb_array_empty should use __ptr_ring_empty since that's the only
legal lockless function.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skb_array.h
patch
|
blob
|
history
diff --git
a/include/linux/skb_array.h
b/include/linux/skb_array.h
index c7addf37d11987e656bfc3e107f1bac3ea5f97a7..a6b6e8bb3d7b8a7b37577d6376d10ea102298a99 100644
(file)
--- a/
include/linux/skb_array.h
+++ b/
include/linux/skb_array.h
@@
-69,7
+69,7
@@
static inline int skb_array_produce_any(struct skb_array *a, struct sk_buff *skb
*/
static inline bool __skb_array_empty(struct skb_array *a)
{
- return
!__ptr_ring_peek
(&a->ring);
+ return
__ptr_ring_empty
(&a->ring);
}
static inline struct sk_buff *__skb_array_peek(struct skb_array *a)