Skip to contentSkip to conversation

Remove ipvs v6 dependency on iptables

PATCH In review Lach 4 participants 10 messages Aug 27, 2020 – Aug 31, 2020

Subsystems (5)
lore
Share & tools
lore

Lach

author
#0 lore raw

PATCH 1/1 Remove ipvs v6 dependency on iptables

This dependency was added in 63dca2c0b0e7a92cb39d1b1ecefa32ffda201975, because this commit had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required, because f8f626754ebeca613cf1af2e6f890cfde0e74d5b moved them to a more common location

---
 net/netfilter/ipvs/Kconfig | 1 -
 1 file changed, 1 deletion(-)
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.
Signature · 1 line
2.28.0
maintainer
#1 lore raw

Hello,

Quoted 4 lines · Lach

This dependency was added in 63dca2c0b0e7a92cb39d1b1ecefa32ffda201975, because this commit had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required, because f8f626754ebeca613cf1af2e6f890cfde0e74d5b moved them to a more common location

May be then we should also not include ip6_tables.h from
include/net/ip_vs.h ?

Quoted 18 lines
---
 net/netfilter/ipvs/Kconfig | 1 -
 1 file changed, 1 deletion(-)
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.
Signature · 1 line
2.28.0

Regards

--
Julian Anastasov <[email protected]>

author
#2 lore raw

PATCH 1/1 Remove ipvs v6 dependency on iptables

This dependency was added in 63dca2c0b0e7a92cb39d1b1ecefa32ffda201975, because this commit had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required, because f8f626754ebeca613cf1af2e6f890cfde0e74d5b moved them to a more common location

---
 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.

--
2.28.0

#3 lore raw

Le 28/08/2020 à 00:07, Lach a écrit :

Quoted 5 lines

This dependency was added in 63dca2c0b0e7a92cb39d1b1ecefa32ffda201975, because this commit had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required, because f8f626754ebeca613cf1af2e6f890cfde0e74d5b moved them to a more common location
---

Your 'Signed-off-by' is missing, the commit log lines are too long, a commit should not be referenced like this.
Please run checkpatch on your submissions.

Regards,
Nicolas

#4 lore raw

PATCH 1/1 Remove ipvs v6 dependency on iptables

This dependency was added as part of commit ecefa32ffda201975 ("ipvs: Fix faulty IPv6 extension header handling in IPVS"), because it had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required after commit e6f890cfde0e74d5b ("ipv6:Move ipv6_find_hdr() out of Netfilter code.")

Also remove ip6tables include from ip_vs

---
 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.
Signature · 1 line
2.28.0
maintainer
#5 lore raw

Hello,

Quoted 11 lines · Yaroslav Bolyukin

This dependency was added as part of commit ecefa32ffda201975 ("ipvs: Fix faulty IPv6 extension header handling in IPVS"), because it had dependency on ipv6_find_hdr, which was located in iptables-specific code

But it is no longer required after commit e6f890cfde0e74d5b ("ipv6:Move ipv6_find_hdr() out of Netfilter code.")

Also remove ip6tables include from ip_vs

The commit you reference better to be added as special
tag, eg: Fixes: f8f626754ebe ("ipv6: Move ipv6_find_hdr() out of Netfilter code.") before the Signed-off-by line. Then you may skip mentioning the commit in the description, it will be in Fixes tag. Note that the first 12 chars from the commit id are used, not the last. Second Fixes line can be for 63dca2c0b0e7 ("ipvs: Fix faulty IPv6 extension header handling in IPVS"). Both Fixes lines should not be wrapped.

The Subject line needs to include version and tree,
for example: [PATCHv2 net-next] ipvs: remove v6 dependency on iptables You increase the version when sending modified patch.

You can check the Documentation/process/submitting-patches.rst
guide for more info.

Quoted 25 lines
---
 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -0
index 2c1593089..eb0e329f9 100644

net/netfilter/ipvs/Kconfig if IP_VS · line 34

Quoted 7 lines
net/netfilter/ipvs/Kconfig +0 -1
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.

Regards

#6 lore raw

PATCH v4 1/1 Remove ipvs v6 dependency on iptables

This dependency was added because ipv6_find_hdr was in iptables specific code but is no longer required

Fixes f8f626754ebe ("ipv6: Move ipv6_find_hdr() out of Netfilter code.")
Fixes 63dca2c0b0e7 ("ipvs: Fix faulty IPv6 extension header handling in IPVS").
---
 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.

--
2.28.0

#7 lore raw

PATCH v5 1/1 ipvs: remove dependency on ip6_tables

In reply to Julian Anastasov

This dependency was added because ipv6_find_hdr was in iptables specific code but is no longer required

Fixes f8f626754ebe ("ipv6: Move ipv6_find_hdr() out of Netfilter code.")
Fixes 63dca2c0b0e7 ("ipvs: Fix faulty IPv6 extension header handling in IPVS").

---
Missed canonical patch format section, subsystem is now spevified

 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -1
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.

--
2.28.0

maintainer Acked-by on v5 1/1
#8 lore raw

Re: [PATCHv5 net-next] ipvs: remove dependency on ip6_tables

Hello,

Quoted 6 lines · Yaroslav Bolyukin

This dependency was added because ipv6_find_hdr was in iptables specific code but is no longer required

Fixes f8f626754ebe ("ipv6: Move ipv6_find_hdr() out of Netfilter code.")
Fixes 63dca2c0b0e7 ("ipvs: Fix faulty IPv6 extension header handling in IPVS").

Looks good to me, thanks! May be maintainers will
remove the extra dot after the Fixes line.

Quoted 34 lines

---
Missed canonical patch format section, subsystem is now spevified

 include/net/ip_vs.h        | 3 ---
 net/netfilter/ipvs/Kconfig | 1 -
 2 files changed, 4 deletions(-)
include/net/ip_vs.h +0 -3
index 9a59a3378..d609e957a 100644
@@ -25,9 +25,6 @@
 #include <linux/ip.h>
 #include <linux/ipv6.h>			/* for struct ipv6hdr */
 #include <net/ipv6.h>
-#if IS_ENABLED(CONFIG_IP_VS_IPV6)
-#include <linux/netfilter_ipv6/ip6_tables.h>
-#endif
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
 #include <net/netfilter/nf_conntrack.h>
 #endif
net/netfilter/ipvs/Kconfig +0 -2
index 2c1593089..eb0e329f9 100644
@@ -29,7 +29,6 @@ if IP_VS
 config	IP_VS_IPV6
 	bool "IPv6 support for IPVS"
 	depends on IPV6 = y || IP_VS = IPV6
-	select IP6_NF_IPTABLES
 	select NF_DEFRAG_IPV6
 	help
 	  Add IPv6 support to IPVS.
--
Quoted 1 line

2.28.0

Regards

maintainer Applied
#9 lore raw

Re: [PATCHv5 net-next] ipvs: remove dependency on ip6_tables

Quoted 8 lines · Julian Anastasov

Hello,

Quoted 3 lines · Yaroslav Bolyukin

This dependency was added because ipv6_find_hdr was in iptables specific code but is no longer required

Quoted 6 lines
Quoted 3 lines
Fixes f8f626754ebe ("ipv6: Move ipv6_find_hdr() out of Netfilter code.")
Fixes 63dca2c0b0e7 ("ipvs: Fix faulty IPv6 extension header handling in IPVS").

Looks good to me, thanks! May be maintainers will
remove the extra dot after the Fixes line.

Applied, thanks. I have also removed the extra dot.