netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/2] openvswitch: Allow GRE ports when compiled as a module.
@ 2013-06-21 23:17 Jesse Gross
  2013-06-21 23:17 ` [PATCH net-next 2/2] ip_tunnel: Protect tunnel functions with CONFIG_INET guard Jesse Gross
  2013-06-24  7:19 ` [PATCH net-next 1/2] openvswitch: Allow GRE ports when compiled as a module David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Jesse Gross @ 2013-06-21 23:17 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, dev, Pravin Shelar, Jesse Gross

Open vSwitch GRE tunnels are currently only enabled if the GRE
datapath code is statically compiled in but it should be possible
to use it as a module as well.

CC: Pravin Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
---
 net/openvswitch/vport-gre.c | 2 +-
 net/openvswitch/vport.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c
index 3a8d190..943e5c4 100644
--- a/net/openvswitch/vport-gre.c
+++ b/net/openvswitch/vport-gre.c
@@ -16,7 +16,7 @@
  * 02110-1301, USA
  */
 
-#ifdef CONFIG_NET_IPGRE_DEMUX
+#if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX)
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/if.h>
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index f52dfb9..ba81294 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -39,7 +39,7 @@ static const struct vport_ops *vport_ops_list[] = {
 	&ovs_netdev_vport_ops,
 	&ovs_internal_vport_ops,
 
-#ifdef CONFIG_NET_IPGRE_DEMUX
+#if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX)
 	&ovs_gre_vport_ops,
 #endif
 };
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-24  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 23:17 [PATCH net-next 1/2] openvswitch: Allow GRE ports when compiled as a module Jesse Gross
2013-06-21 23:17 ` [PATCH net-next 2/2] ip_tunnel: Protect tunnel functions with CONFIG_INET guard Jesse Gross
2013-06-22  3:46   ` Randy Dunlap
2013-06-24  7:19   ` David Miller
2013-06-24  7:19 ` [PATCH net-next 1/2] openvswitch: Allow GRE ports when compiled as a module David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).