Skip to contentSkip to conversation

openvswitch: check CONFIG_OPENVSWITCH_GRE in makefile

PATCH Applied Cong Wang 2 participants 2 messages Aug 20, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 openvswitch: check CONFIG_OPENVSWITCH_GRE in makefile

From: Cong Wang <[email protected]>

Cc Jesse Gross <[email protected]>
Cc Pravin B Shelar <[email protected]>

---

net/openvswitch/Makefile +3 -1
index 82e4ee5..4de6dcc 100644
@@ -10,10 +10,12 @@ openvswitch-y := \
 	dp_notify.o \
 	flow.o \
 	vport.o \
-	vport-gre.o \
 	vport-internal_dev.o \
 	vport-netdev.o
 
 ifneq ($(CONFIG_OPENVSWITCH_VXLAN),)
 openvswitch-y += vport-vxlan.o
 endif
+ifneq ($(CONFIG_OPENVSWITCH_GRE),)
+openvswitch-y += vport-gre.o
+endif
net/openvswitch/vport-gre.c +0 -3
index 493e977..21d5073 100644
@@ -16,7 +16,6 @@
  * 02110-1301, USA
  */
 
-#ifdef CONFIG_OPENVSWITCH_GRE
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/if.h>
@@ -271,5 +270,3 @@ const struct vport_ops ovs_gre_vport_ops = {
 	.get_name	= gre_get_name,
 	.send		= gre_tnl_send,
 };
-
-#endif /* OPENVSWITCH_GRE */

A message that is not in the archive (sent off-list or not yet received): 1376990410-21778-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org