summaryrefslogtreecommitdiffstats
path: root/include/linux/if_tap.h
diff options
context:
space:
mode:
authorSainath Grandhi <sainath.grandhi@intel.com>2017-02-10 16:03:51 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-11 20:59:41 -0500
commit9a393b5d5988ea4eaa3e0da138321abe0dc03a68 (patch)
tree5a006ee32965ff9c76984aa7ce7c870d966be7ac /include/linux/if_tap.h
parentd9f1f61c0801a73ff36d416a7ede54229b231e1d (diff)
downloadblackbird-op-linux-9a393b5d5988ea4eaa3e0da138321abe0dc03a68.tar.gz
blackbird-op-linux-9a393b5d5988ea4eaa3e0da138321abe0dc03a68.zip
tap: tap as an independent module
This patch makes tap a separate module for other types of virtual interfaces, for example, ipvlan to use. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_tap.h b/include/linux/if_tap.h
index 362e71c16efb..3482c3c2037d 100644
--- a/include/linux/if_tap.h
+++ b/include/linux/if_tap.h
@@ -1,7 +1,7 @@
#ifndef _LINUX_IF_TAP_H_
#define _LINUX_IF_TAP_H_
-#if IS_ENABLED(CONFIG_MACVTAP)
+#if IS_ENABLED(CONFIG_TAP)
struct socket *tap_get_socket(struct file *);
#else
#include <linux/err.h>
@@ -12,7 +12,7 @@ static inline struct socket *tap_get_socket(struct file *f)
{
return ERR_PTR(-EINVAL);
}
-#endif /* CONFIG_MACVTAP */
+#endif /* CONFIG_TAP */
#include <net/sock.h>
#include <linux/skb_array.h>
OpenPOWER on IntegriCloud