Skip to content

Commit

Permalink
openvswitch: check CONFIG_OPENVSWITCH_GRE in makefile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cong Wang authored and Jesse Gross committed Aug 23, 2013
1 parent 2694838 commit 3fa34de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion net/openvswitch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ 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
3 changes: 0 additions & 3 deletions net/openvswitch/vport-gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* 02110-1301, USA
*/

#ifdef CONFIG_OPENVSWITCH_GRE
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/if.h>
Expand Down Expand Up @@ -271,5 +270,3 @@ const struct vport_ops ovs_gre_vport_ops = {
.get_name = gre_get_name,
.send = gre_tnl_send,
};

#endif /* OPENVSWITCH_GRE */

0 comments on commit 3fa34de

Please sign in to comment.