projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce679e8
)
net: skb_array: expose peek API
author
John Fastabend
<john.fastabend@gmail.com>
Thu, 7 Dec 2017 17:57:59 +0000
(09:57 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 8 Dec 2017 18:32:26 +0000
(13:32 -0500)
This adds a peek routine to skb_array.h for use with qdisc.
Signed-off-by: John Fastabend <john.fastabend@gmail.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
8621ffd
..
c7addf3
100644
(file)
--- a/
include/linux/skb_array.h
+++ b/
include/linux/skb_array.h
@@
-72,6
+72,11
@@
static inline bool __skb_array_empty(struct skb_array *a)
return !__ptr_ring_peek(&a->ring);
}
+static inline struct sk_buff *__skb_array_peek(struct skb_array *a)
+{
+ return __ptr_ring_peek(&a->ring);
+}
+
static inline bool skb_array_empty(struct skb_array *a)
{
return ptr_ring_empty(&a->ring);