net/rds/Kconfig: RDS should depend on IPV6
Subsystems (4)
PATCH 1/1 net/rds/Kconfig: RDS should depend on IPV6
Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]
hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
^~~~~~~~~~~~~~~
__inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
--- net/rds/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +1 -1
@@ -1,7 +1,7 @@ config RDS tristate "The RDS Protocol" - depends on INET + depends on INET && CONFIG_IPV6 ---help--- The RDS (Reliable Datagram Sockets) protocol provides reliable, sequenced delivery of datagrams over Infiniband or TCP.
Signature · 1 line
2.18.0
Quoted 21 lines · Anders Roxell
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); ^~~~~~~~~~~~~~~ __inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>--- net/rds/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/rds/Kconfig +0
-0
net/rds/Kconfig line 4
Quoted 5 lines
net/rds/Kconfig +1
-1@@ -1,7 +1,7 @@ config RDS tristate "The RDS Protocol" - depends on INET + depends on INET && CONFIG_IPV6
This should build without CONFIG_IPV6 too.
Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take always in6_addr now, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).
Regards,
Santosh
Quoted 28 lines · Santosh Shilimkar
Quoted 21 lines · Anders Roxell
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration] hash =__inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
^~~~~~~~~~~~~~~
__inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>---
net/rds/Kconfig| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)net/rds/Kconfig +0
-0@@ -1,7 +1,7 @@Quoted 4 lines
config RDS
tristate "The RDS Protocol"
- depends on INET
+ depends on INET &&CONFIG_IPV6This should build without
CONFIG_IPV6too.
Quoted 5 lines
Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take alwaysin6_addrnow, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).
I guess for now, let's add this dependency first. I will do a follow up patch to remove this dependency.
Thanks.
Signature · 2 lines
K. Poon [email protected]
[email protected]
Acked-byQuoted 35 lines · Ka-Cheong Poon
Quoted 27 lines · Santosh Shilimkar
Quoted 20 lines · Anders Roxell
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration] hash =__inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
^~~~~~~~~~~~~~~
__inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>--- >>>
net/rds/Kconfig| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)net/rds/Kconfig +0
-0@@ -1,7 +1,7 @@Quoted 4 lines
config RDS
tristate "The RDS Protocol"
- depends on INET
+ depends on INET &&CONFIG_IPV6This should build without
CONFIG_IPV6too.Quoted 5 lines
Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take alwaysin6_addrnow, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).
Quoted 3 lines
I guess for now, let's add this dependency first. I will do a follow up patch to remove this dependency.
Sounds good to me.
FWIW,
From: Anders Roxell <[email protected]>
Date: Thu, 26 Jul 2018 00:20:08 +0200
Quoted 4 lines
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]
Quoted 8 lines
hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); ^~~~~~~~~~~~~~~ __inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>
Applied.
Quoted 21 lines · Anders Roxell
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); ^~~~~~~~~~~~~~~ __inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>--- net/rds/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/rds/Kconfig +0
-0
net/rds/Kconfig line 4
Quoted 5 lines
net/rds/Kconfig +1
-1@@ -1,7 +1,7 @@ config RDS tristate "The RDS Protocol" - depends on INET + depends on INET && CONFIG_IPV6
You probably meant :
depends on INET && IPV6
Quoted 4 lines
net/rds/Kconfig +0
-0---help--- The RDS (Reliable Datagram Sockets) protocol provides reliable, sequenced delivery of datagrams over Infiniband or TCP.
Quoted 26 lines · Eric Dumazet
Quoted 22 lines · Anders Roxell
Build error, implicit declaration of function
__inet6_ehashfnshows up
When RDS is enabled but not IPV6.net/rds/connection.c: In function ‘rds_conn_bucket’:net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); ^~~~~~~~~~~~~~~ __inet_ehashfnCurrent code adds IPV6 as a depends on in config RDS.
Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")Signed-off-by Anders Roxell <[email protected]>--- net/rds/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/rds/Kconfig +0
-0@@ -1,7 +1,7 @@
Quoted 8 lines
net/rds/Kconfig line 4
Quoted 4 lines
net/rds/Kconfig +1
-1config RDS tristate "The RDS Protocol" - depends on INET + depends on INET && CONFIG_IPV6You probably meant :
depends on INET && IPV6
Hmm... Yes, I'll send out a new patch to fix it.
I'm sorry.
Cheers,
Anders
Quoted 6 lines
Quoted 6 lines
net/rds/Kconfig +0
-0---help--- The RDS (Reliable Datagram Sockets) protocol provides reliable, sequenced delivery of datagrams over Infiniband or TCP.