Commit fd68adec authored by Jason Wang's avatar Jason Wang Committed by David S. Miller

skb_array: minor tweak

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 982fb490
......@@ -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);
}
void __skb_array_destroy_skb(void *ptr)
static void __skb_array_destroy_skb(void *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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment