* [MPTCP] Re: [PATCH 6/6] mptcp: Add IPv6 support
@ 2019-11-05 23:37 Peter Krystad
0 siblings, 0 replies; 2+ messages in thread
From: Peter Krystad @ 2019-11-05 23:37 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]
On Thu, 2019-10-31 at 13:32 +0100, Davide Caratti wrote:
> hello Peter!
>
> On Wed, 2019-10-30 at 16:38 -0700, Peter Krystad wrote:
> > Mimic hooks and option handling for IPv6 as was done for
> > IPv4 MPTCP sockets.
> >
> > Signed-off-by: Peter Krystad <peter.krystad(a)linux.intel.com>
> > ---
> > include/net/mptcp.h | 3 ++
> > net/ipv6/tcp_ipv6.c | 7 +++
> > net/mptcp/ctrl.c | 11 +++++
> > net/mptcp/protocol.c | 85 ++++++++++++++++++++++++++++++++--
> > net/mptcp/protocol.h | 3 ++
> > net/mptcp/subflow.c | 107 ++++++++++++++++++++++++++++++++++++++++++-
> > 6 files changed, 209 insertions(+), 7 deletions(-)
> >
> > diff --git a/include/net/mptcp.h b/include/net/mptcp.h
> > index eba39a881767..41225c50aebb 100644
> > --- a/include/net/mptcp.h
> > +++ b/include/net/mptcp.h
> > @@ -53,6 +53,9 @@ struct mptcp_out_options {
> > #ifdef CONFIG_MPTCP
> >
> > void mptcp_init(void);
> > +#if IS_ENABLED(CONFIG_IPV6)
> > +int mptcpv6_init(void);
> > +#endif
>
> I didn't see a stub version of mptcpv6_init(),
>
> > static inline bool sk_is_mptcp(const struct sock *sk)
> > {
> > diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
> > index 50f6f21bbdb1..10d1c033d458 100644
> > --- a/net/ipv6/tcp_ipv6.c
> > +++ b/net/ipv6/tcp_ipv6.c
> > @@ -2109,9 +2109,16 @@ int __init tcpv6_init(void)
> > ret = register_pernet_subsys(&tcpv6_net_ops);
> > if (ret)
> > goto out_tcpv6_protosw;
> > +
> > + ret = mptcpv6_init();
> > + if (ret)
> > + goto out_tcpv6_pernet_subsys;
> > +
> > out:
> > return ret;
>
> so probably the above hunk will cause build problems when CONFIG_MPTCP is
> unset. Am I missing something?
Nope, you are right. I will fix this in v2.
Peter.
>
> thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* [MPTCP] Re: [PATCH 6/6] mptcp: Add IPv6 support
@ 2019-10-31 12:32 Davide Caratti
0 siblings, 0 replies; 2+ messages in thread
From: Davide Caratti @ 2019-10-31 12:32 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]
hello Peter!
On Wed, 2019-10-30 at 16:38 -0700, Peter Krystad wrote:
> Mimic hooks and option handling for IPv6 as was done for
> IPv4 MPTCP sockets.
>
> Signed-off-by: Peter Krystad <peter.krystad(a)linux.intel.com>
> ---
> include/net/mptcp.h | 3 ++
> net/ipv6/tcp_ipv6.c | 7 +++
> net/mptcp/ctrl.c | 11 +++++
> net/mptcp/protocol.c | 85 ++++++++++++++++++++++++++++++++--
> net/mptcp/protocol.h | 3 ++
> net/mptcp/subflow.c | 107 ++++++++++++++++++++++++++++++++++++++++++-
> 6 files changed, 209 insertions(+), 7 deletions(-)
>
> diff --git a/include/net/mptcp.h b/include/net/mptcp.h
> index eba39a881767..41225c50aebb 100644
> --- a/include/net/mptcp.h
> +++ b/include/net/mptcp.h
> @@ -53,6 +53,9 @@ struct mptcp_out_options {
> #ifdef CONFIG_MPTCP
>
> void mptcp_init(void);
> +#if IS_ENABLED(CONFIG_IPV6)
> +int mptcpv6_init(void);
> +#endif
I didn't see a stub version of mptcpv6_init(),
> static inline bool sk_is_mptcp(const struct sock *sk)
> {
> diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
> index 50f6f21bbdb1..10d1c033d458 100644
> --- a/net/ipv6/tcp_ipv6.c
> +++ b/net/ipv6/tcp_ipv6.c
> @@ -2109,9 +2109,16 @@ int __init tcpv6_init(void)
> ret = register_pernet_subsys(&tcpv6_net_ops);
> if (ret)
> goto out_tcpv6_protosw;
> +
> + ret = mptcpv6_init();
> + if (ret)
> + goto out_tcpv6_pernet_subsys;
> +
> out:
> return ret;
so probably the above hunk will cause build problems when CONFIG_MPTCP is
unset. Am I missing something?
thanks!
--
davide
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-05 23:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 23:37 [MPTCP] Re: [PATCH 6/6] mptcp: Add IPv6 support Peter Krystad
-- strict thread matches above, loose matches on Subject: below --
2019-10-31 12:32 Davide Caratti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.