diff options
author | 2017-05-17 12:14:42 +0800 | |
---|---|---|
committer | 2017-05-18 10:07:41 -0400 | |
commit | 49f96fd0cb3808e5ff96573f28b3dceb16eb6998 (patch) | |
tree | 8813625dcfe4369f90f3b6018131876195a0640c /include/linux | |
parent | tun: export skb_array (diff) | |
download | linux-dev-49f96fd0cb3808e5ff96573f28b3dceb16eb6998.tar.xz linux-dev-49f96fd0cb3808e5ff96573f28b3dceb16eb6998.zip |
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')
-rw-r--r-- | include/linux/if_tap.h | 5 |
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> |