projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e6ae5
)
skb_array: add wrappers for resizing
author
Jason Wang
<jasowang@redhat.com>
Thu, 30 Jun 2016 06:45:34 +0000
(14:45 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 1 Jul 2016 09:32:17 +0000
(
05:32
-0400)
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>
include/linux/skb_array.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/skb_array.h
b/include/linux/skb_array.h
index 2dd0d1e4ee7ecba9726b841e9df948c55d3f68b2..f4dfade428f0c85f28956476512f28aa74328b08 100644
(file)
--- a/
include/linux/skb_array.h
+++ b/
include/linux/skb_array.h
@@
-161,6
+161,15
@@
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);
}
+static inline int skb_array_resize_multiple(struct skb_array **rings,
+ int nrings, int size, gfp_t gfp)
+{
+ BUILD_BUG_ON(offsetof(struct skb_array, ring));
+ return ptr_ring_resize_multiple((struct ptr_ring **)rings,
+ nrings, size, gfp,
+ __skb_array_destroy_skb);
+}
+
static inline void skb_array_cleanup(struct skb_array *a)
{
ptr_ring_cleanup(&a->ring, __skb_array_destroy_skb);