Skip to content

Commit

Permalink
openvswitch: Remove conntrack Kconfig option.
Browse files Browse the repository at this point in the history
There's no particular desire to have conntrack action support in Open
vSwitch as an independently configurable bit, rather just to ensure
there is not a hard dependency. This exposed option doesn't accurately
reflect the conntrack dependency when enabled, so simplify this by
removing the option. Compile the support if NF_CONNTRACK is enabled.

Fixes: 7f8a436 ("openvswitch: Add conntrack action")
Signed-off-by: Joe Stringer <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
joestringer authored and davem330 committed Sep 7, 2015
1 parent 585e7e1 commit f88f69d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
12 changes: 1 addition & 11 deletions net/openvswitch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
config OPENVSWITCH
tristate "Open vSwitch"
depends on INET
depends on (!NF_CONNTRACK || NF_CONNTRACK)
select LIBCRC32C
select MPLS
select NET_MPLS_GSO
Expand All @@ -31,17 +32,6 @@ config OPENVSWITCH

If unsure, say N.

config OPENVSWITCH_CONNTRACK
bool "Open vSwitch conntrack action support"
depends on OPENVSWITCH
depends on NF_CONNTRACK
default OPENVSWITCH
---help---
If you say Y here, then Open vSwitch module will be able to pass
packets through conntrack.

Say N to exclude this support and reduce the binary size.

config OPENVSWITCH_GRE
tristate "Open vSwitch GRE tunneling support"
depends on OPENVSWITCH
Expand Down
4 changes: 3 additions & 1 deletion net/openvswitch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ openvswitch-y := \
vport-internal_dev.o \
vport-netdev.o

openvswitch-$(CONFIG_OPENVSWITCH_CONNTRACK) += conntrack.o
ifneq ($(CONFIG_NF_CONNTRACK),)
openvswitch-y += conntrack.o
endif

obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
obj-$(CONFIG_OPENVSWITCH_GENEVE)+= vport-geneve.o
Expand Down
4 changes: 2 additions & 2 deletions net/openvswitch/conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
struct ovs_conntrack_info;
enum ovs_key_attr;

#if defined(CONFIG_OPENVSWITCH_CONNTRACK)
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
void ovs_ct_init(struct net *);
void ovs_ct_exit(struct net *);
bool ovs_ct_verify(struct net *, enum ovs_key_attr attr);
Expand Down Expand Up @@ -82,5 +82,5 @@ static inline int ovs_ct_put_key(const struct sw_flow_key *key,
}

static inline void ovs_ct_free_action(const struct nlattr *a) { }
#endif
#endif /* CONFIG_NF_CONNTRACK */
#endif /* ovs_conntrack.h */

0 comments on commit f88f69d

Please sign in to comment.