mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
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>
This commit is contained in:
parent
ce679e8df7
commit
4a86a4cf68
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue