diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-06-28 19:07:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-01 16:19:43 -0400 |
commit | fb825a550a1af75323cee9d62d6fb818384c8c95 (patch) | |
tree | 5c661cbf3ca2b5e0dda8135c79ff52a451c403ee /net/openvswitch | |
parent | 7ec5689461989fd80f1cf82ae084f5d50a5e63ee (diff) |
openvswitch: Add Kconfig dependency on GRE-DEMUX.
Openvswitch uses function from NET_IPGRE_DEMUX module.
Add Kconfig dependency to fix following compilation errors:
http://marc.info/?l=linux-netdev&m=137244035226634
CC: Jesse Gross <jesse@nicira.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Pravin Shelar <pshelar@nicira.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r-- | net/openvswitch/Kconfig | 16 | ||||
-rw-r--r-- | net/openvswitch/vport-gre.c | 5 | ||||
-rw-r--r-- | net/openvswitch/vport.c | 2 |
3 files changed, 18 insertions, 5 deletions
diff --git a/net/openvswitch/Kconfig b/net/openvswitch/Kconfig index 9fbc04a31ed6..27ee56b688a3 100644 --- a/net/openvswitch/Kconfig +++ b/net/openvswitch/Kconfig | |||
@@ -19,8 +19,6 @@ config OPENVSWITCH | |||
19 | which is able to accept configuration from a variety of sources and | 19 | which is able to accept configuration from a variety of sources and |
20 | translate it into packet processing rules. | 20 | translate it into packet processing rules. |
21 | 21 | ||
22 | Open vSwitch GRE support depends on CONFIG_NET_IPGRE_DEMUX. | ||
23 | |||
24 | See http://openvswitch.org for more information and userspace | 22 | See http://openvswitch.org for more information and userspace |
25 | utilities. | 23 | utilities. |
26 | 24 | ||
@@ -28,3 +26,17 @@ config OPENVSWITCH | |||
28 | called openvswitch. | 26 | called openvswitch. |
29 | 27 | ||
30 | If unsure, say N. | 28 | If unsure, say N. |
29 | |||
30 | config OPENVSWITCH_GRE | ||
31 | bool "Open vSwitch GRE tunneling support" | ||
32 | depends on INET | ||
33 | depends on OPENVSWITCH | ||
34 | depends on NET_IPGRE_DEMUX && !(OPENVSWITCH=y && NET_IPGRE_DEMUX=m) | ||
35 | default y | ||
36 | ---help--- | ||
37 | If you say Y here, then the Open vSwitch will be able create GRE | ||
38 | vport. | ||
39 | |||
40 | Say N to exclude this support and reduce the binary size. | ||
41 | |||
42 | If unsure, say Y. | ||
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index 943e5c431354..493e9775dcda 100644 --- a/net/openvswitch/vport-gre.c +++ b/net/openvswitch/vport-gre.c | |||
@@ -16,7 +16,7 @@ | |||
16 | * 02110-1301, USA | 16 | * 02110-1301, USA |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX) | 19 | #ifdef CONFIG_OPENVSWITCH_GRE |
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
21 | 21 | ||
22 | #include <linux/if.h> | 22 | #include <linux/if.h> |
@@ -271,4 +271,5 @@ const struct vport_ops ovs_gre_vport_ops = { | |||
271 | .get_name = gre_get_name, | 271 | .get_name = gre_get_name, |
272 | .send = gre_tnl_send, | 272 | .send = gre_tnl_send, |
273 | }; | 273 | }; |
274 | #endif | 274 | |
275 | #endif /* OPENVSWITCH_GRE */ | ||
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index ba81294219ac..d4c7fa04ce08 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c | |||
@@ -39,7 +39,7 @@ static const struct vport_ops *vport_ops_list[] = { | |||
39 | &ovs_netdev_vport_ops, | 39 | &ovs_netdev_vport_ops, |
40 | &ovs_internal_vport_ops, | 40 | &ovs_internal_vport_ops, |
41 | 41 | ||
42 | #if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX) | 42 | #ifdef CONFIG_OPENVSWITCH_GRE |
43 | &ovs_gre_vport_ops, | 43 | &ovs_gre_vport_ops, |
44 | #endif | 44 | #endif |
45 | }; | 45 | }; |