diff options
author | Cong Wang <amwang@redhat.com> | 2013-08-20 13:48:15 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-08-23 19:43:07 -0400 |
commit | 3fa34de67861abfc4846ccec886ca549d46ae56c (patch) | |
tree | b043c4686c6b40283b6900e19d8907b94ac59f84 /net | |
parent | 2694838d608db701e5ed1e95d741cdbddd9aa864 (diff) |
openvswitch: check CONFIG_OPENVSWITCH_GRE in makefile
Cc: Jesse Gross <jesse@nicira.com>
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/openvswitch/Makefile | 5 | ||||
-rw-r--r-- | net/openvswitch/vport-gre.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile index 82e4ee54a44b..ea36e99089af 100644 --- a/net/openvswitch/Makefile +++ b/net/openvswitch/Makefile | |||
@@ -10,10 +10,13 @@ openvswitch-y := \ | |||
10 | dp_notify.o \ | 10 | dp_notify.o \ |
11 | flow.o \ | 11 | flow.o \ |
12 | vport.o \ | 12 | vport.o \ |
13 | vport-gre.o \ | ||
14 | vport-internal_dev.o \ | 13 | vport-internal_dev.o \ |
15 | vport-netdev.o | 14 | vport-netdev.o |
16 | 15 | ||
17 | ifneq ($(CONFIG_OPENVSWITCH_VXLAN),) | 16 | ifneq ($(CONFIG_OPENVSWITCH_VXLAN),) |
18 | openvswitch-y += vport-vxlan.o | 17 | openvswitch-y += vport-vxlan.o |
19 | endif | 18 | endif |
19 | |||
20 | ifneq ($(CONFIG_OPENVSWITCH_GRE),) | ||
21 | openvswitch-y += vport-gre.o | ||
22 | endif | ||
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index 493e9775dcda..21d5073e148e 100644 --- a/net/openvswitch/vport-gre.c +++ b/net/openvswitch/vport-gre.c | |||
@@ -16,7 +16,6 @@ | |||
16 | * 02110-1301, USA | 16 | * 02110-1301, USA |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifdef CONFIG_OPENVSWITCH_GRE | ||
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
21 | 20 | ||
22 | #include <linux/if.h> | 21 | #include <linux/if.h> |
@@ -271,5 +270,3 @@ const struct vport_ops ovs_gre_vport_ops = { | |||
271 | .get_name = gre_get_name, | 270 | .get_name = gre_get_name, |
272 | .send = gre_tnl_send, | 271 | .send = gre_tnl_send, |
273 | }; | 272 | }; |
274 | |||
275 | #endif /* OPENVSWITCH_GRE */ | ||