diff options
author | Jason Wang <jasowang@redhat.com> | 2018-01-04 06:14:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-09 18:56:10 +0300 |
commit | 5990a30510ed1c37a769d3a035ad2d030b843528 (patch) | |
tree | 58dd7f60299879be878882f3ccaa4fed164e6665 /include/linux/if_tun.h | |
parent | a0ce093180f2bbb832b3f5583adc640ad67ea568 (diff) | |
download | linux-5990a30510ed1c37a769d3a035ad2d030b843528.tar.xz |
tun/tap: use ptr_ring instead of skb_array
This patch switches to use ptr_ring instead of skb_array. This will be
used to enqueue different types of pointers by encoding type into
lower bits.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_tun.h')
-rw-r--r-- | include/linux/if_tun.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index bf9bdf42d577..bdee9b83baf6 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -19,7 +19,7 @@ #if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) struct socket *tun_get_socket(struct file *); -struct skb_array *tun_get_skb_array(struct file *file); +struct ptr_ring *tun_get_tx_ring(struct file *file); #else #include <linux/err.h> #include <linux/errno.h> @@ -29,7 +29,7 @@ static inline struct socket *tun_get_socket(struct file *f) { return ERR_PTR(-EINVAL); } -static inline struct skb_array *tun_get_skb_array(struct file *f) +static inline struct ptr_ring *tun_get_tx_ring(struct file *f) { return ERR_PTR(-EINVAL); } |