mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
skb_array: minor tweak
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
982fb490c2
commit
fd68adec9d
1 changed files with 2 additions and 2 deletions
|
@ -151,12 +151,12 @@ static inline int skb_array_init(struct skb_array *a, int size, gfp_t gfp)
|
||||||
return ptr_ring_init(&a->ring, size, gfp);
|
return ptr_ring_init(&a->ring, size, gfp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __skb_array_destroy_skb(void *ptr)
|
static void __skb_array_destroy_skb(void *ptr)
|
||||||
{
|
{
|
||||||
kfree_skb(ptr);
|
kfree_skb(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
int skb_array_resize(struct skb_array *a, int size, gfp_t gfp)
|
static inline int skb_array_resize(struct skb_array *a, int size, gfp_t gfp)
|
||||||
{
|
{
|
||||||
return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb);
|
return ptr_ring_resize(&a->ring, size, gfp, __skb_array_destroy_skb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue