aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_tap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_tap.h')
-rw-r--r--include/linux/if_tap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/if_tap.h b/include/linux/if_tap.h
index 3ecef57c31e3..8e66866c11be 100644
--- a/include/linux/if_tap.h
+++ b/include/linux/if_tap.h
@@ -4,7 +4,7 @@
4 4
5#if IS_ENABLED(CONFIG_TAP) 5#if IS_ENABLED(CONFIG_TAP)
6struct socket *tap_get_socket(struct file *); 6struct socket *tap_get_socket(struct file *);
7struct skb_array *tap_get_skb_array(struct file *file); 7struct ptr_ring *tap_get_ptr_ring(struct file *file);
8#else 8#else
9#include <linux/err.h> 9#include <linux/err.h>
10#include <linux/errno.h> 10#include <linux/errno.h>
@@ -14,7 +14,7 @@ static inline struct socket *tap_get_socket(struct file *f)
14{ 14{
15 return ERR_PTR(-EINVAL); 15 return ERR_PTR(-EINVAL);
16} 16}
17static inline struct skb_array *tap_get_skb_array(struct file *f) 17static inline struct ptr_ring *tap_get_ptr_ring(struct file *f)
18{ 18{
19 return ERR_PTR(-EINVAL); 19 return ERR_PTR(-EINVAL);
20} 20}
@@ -70,7 +70,7 @@ struct tap_queue {
70 u16 queue_index; 70 u16 queue_index;
71 bool enabled; 71 bool enabled;
72 struct list_head next; 72 struct list_head next;
73 struct skb_array skb_array; 73 struct ptr_ring ring;
74}; 74};
75 75
76rx_handler_result_t tap_handle_frame(struct sk_buff **pskb); 76rx_handler_result_t tap_handle_frame(struct sk_buff **pskb);