diff options
author | John Fastabend <john.fastabend@gmail.com> | 2017-12-07 09:57:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-08 13:32:26 -0500 |
commit | 4a86a4cf68b4996a656d8c666617e8d839f8f839 (patch) | |
tree | f82764a48f63554dfd9df4eaaeb124e3a0309a54 /include/linux/skb_array.h | |
parent | ce679e8df7ed2a92660556d100cf370fe22b4eab (diff) | |
download | linux-4a86a4cf68b4996a656d8c666617e8d839f8f839.tar.gz linux-4a86a4cf68b4996a656d8c666617e8d839f8f839.tar.bz2 linux-4a86a4cf68b4996a656d8c666617e8d839f8f839.zip |
net: skb_array: expose peek API
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>
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 8621ffdeecbf..c7addf37d119 100644 --- 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); |