Skip to content

Commit 3fa34de

Browse files
Cong Wangjessegross
authored andcommitted
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>
1 parent 2694838 commit 3fa34de

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎net/openvswitch/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ openvswitch-y := \
1010
dp_notify.o \
1111
flow.o \
1212
vport.o \
13-
vport-gre.o \
1413
vport-internal_dev.o \
1514
vport-netdev.o
1615

1716
ifneq ($(CONFIG_OPENVSWITCH_VXLAN),)
1817
openvswitch-y += vport-vxlan.o
1918
endif
19+
20+
ifneq ($(CONFIG_OPENVSWITCH_GRE),)
21+
openvswitch-y += vport-gre.o
22+
endif

‎net/openvswitch/vport-gre.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* 02110-1301, USA
1717
*/
1818

19-
#ifdef CONFIG_OPENVSWITCH_GRE
2019
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2120

2221
#include <linux/if.h>
@@ -271,5 +270,3 @@ const struct vport_ops ovs_gre_vport_ops = {
271270
.get_name = gre_get_name,
272271
.send = gre_tnl_send,
273272
};
274-
275-
#endif /* OPENVSWITCH_GRE */

0 commit comments

Comments
 (0)