Skip to content

Commit f88f69d

Browse files
joestringerdavem330
authored andcommitted
openvswitch: Remove conntrack Kconfig option.
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 <joestringer@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 585e7e1 commit f88f69d

3 files changed

Lines changed: 6 additions & 14 deletions

File tree

‎net/openvswitch/Kconfig‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
config OPENVSWITCH
66
tristate "Open vSwitch"
77
depends on INET
8+
depends on (!NF_CONNTRACK || NF_CONNTRACK)
89
select LIBCRC32C
910
select MPLS
1011
select NET_MPLS_GSO
@@ -31,17 +32,6 @@ config OPENVSWITCH
3132

3233
If unsure, say N.
3334

34-
config OPENVSWITCH_CONNTRACK
35-
bool "Open vSwitch conntrack action support"
36-
depends on OPENVSWITCH
37-
depends on NF_CONNTRACK
38-
default OPENVSWITCH
39-
---help---
40-
If you say Y here, then Open vSwitch module will be able to pass
41-
packets through conntrack.
42-
43-
Say N to exclude this support and reduce the binary size.
44-
4535
config OPENVSWITCH_GRE
4636
tristate "Open vSwitch GRE tunneling support"
4737
depends on OPENVSWITCH

‎net/openvswitch/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ openvswitch-y := \
1515
vport-internal_dev.o \
1616
vport-netdev.o
1717

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

2022
obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
2123
obj-$(CONFIG_OPENVSWITCH_GENEVE)+= vport-geneve.o

‎net/openvswitch/conntrack.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
struct ovs_conntrack_info;
2020
enum ovs_key_attr;
2121

22-
#if defined(CONFIG_OPENVSWITCH_CONNTRACK)
22+
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
2323
void ovs_ct_init(struct net *);
2424
void ovs_ct_exit(struct net *);
2525
bool ovs_ct_verify(struct net *, enum ovs_key_attr attr);
@@ -82,5 +82,5 @@ static inline int ovs_ct_put_key(const struct sw_flow_key *key,
8282
}
8383

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

0 commit comments

Comments
 (0)