summaryrefslogtreecommitdiff
path: root/include/linux/if_tap.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-05-17 12:14:42 +0800
committerDavid S. Miller <davem@davemloft.net>2017-05-18 10:07:41 -0400
commit49f96fd0cb3808e5ff96573f28b3dceb16eb6998 (patch)
tree8813625dcfe4369f90f3b6018131876195a0640c /include/linux/if_tap.h
parent83339c6b159ea6429a1db40b0d9d1083ab574733 (diff)
tap: export skb_array
This patch exports skb_array through tap_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_tap.h')
-rw-r--r--include/linux/if_tap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/if_tap.h b/include/linux/if_tap.h
index 3482c3c2037d..4837157da0dc 100644
--- a/include/linux/if_tap.h
+++ b/include/linux/if_tap.h
@@ -3,6 +3,7 @@
#if IS_ENABLED(CONFIG_TAP)
struct socket *tap_get_socket(struct file *);
+struct skb_array *tap_get_skb_array(struct file *file);
#else
#include <linux/err.h>
#include <linux/errno.h>
@@ -12,6 +13,10 @@ static inline struct socket *tap_get_socket(struct file *f)
{
return ERR_PTR(-EINVAL);
}
+static inline struct skb_array *tap_get_skb_array(struct file *f)
+{
+ return ERR_PTR(-EINVAL);
+}
#endif /* CONFIG_TAP */
#include <net/sock.h>