mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
skb_array: use __ptr_ring_empty
__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>
This commit is contained in:
parent
9fb582b670
commit
f417dc2818
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue