* kTLS getsockopt TLS_RX support
@ 2019-02-23 17:29 Hayakawa Yutaro
2019-02-24 1:50 ` Vakul Garg
0 siblings, 1 reply; 5+ messages in thread
From: Hayakawa Yutaro @ 2019-02-23 17:29 UTC (permalink / raw)
To: netdev
Hello,
While trying the kTLS, I found out that currently, there is no support for kTLS getsockopt TLS_RX which extracts receive side crypto information from kTLS socket. Since setting crypto information for RX side is supported, I felt wonder why it is not supported.
Is there any particular reason for it?
Regards,
Yutaro
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: kTLS getsockopt TLS_RX support
2019-02-23 17:29 kTLS getsockopt TLS_RX support Hayakawa Yutaro
@ 2019-02-24 1:50 ` Vakul Garg
2019-02-24 5:31 ` Hayakawa Yutaro
0 siblings, 1 reply; 5+ messages in thread
From: Vakul Garg @ 2019-02-24 1:50 UTC (permalink / raw)
To: Hayakawa Yutaro, netdev@vger.kernel.org
> -----Original Message-----
> From: netdev-owner@vger.kernel.org <netdev-owner@vger.kernel.org> On
> Behalf Of Hayakawa Yutaro
> Sent: Saturday, February 23, 2019 10:59 PM
> To: netdev@vger.kernel.org
> Subject: kTLS getsockopt TLS_RX support
>
> Hello,
>
> While trying the kTLS, I found out that currently, there is no support for kTLS
> getsockopt TLS_RX which extracts receive side crypto information from kTLS
> socket. Since setting crypto information for RX side is supported, I felt
> wonder why it is not supported.
>
> Is there any particular reason for it?
What use case do you have in mind?
Why give back state of record layer which also contains (record sequence number) to user space?
>
> Regards,
> Yutaro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kTLS getsockopt TLS_RX support
2019-02-24 1:50 ` Vakul Garg
@ 2019-02-24 5:31 ` Hayakawa Yutaro
2019-02-24 5:33 ` Vakul Garg
0 siblings, 1 reply; 5+ messages in thread
From: Hayakawa Yutaro @ 2019-02-24 5:31 UTC (permalink / raw)
To: Vakul Garg; +Cc: netdev@vger.kernel.org
> 2019/02/24 10:50、Vakul Garg <vakul.garg@nxp.com>のメール:
>
>
>
>> -----Original Message-----
>> From: netdev-owner@vger.kernel.org <netdev-owner@vger.kernel.org> On
>> Behalf Of Hayakawa Yutaro
>> Sent: Saturday, February 23, 2019 10:59 PM
>> To: netdev@vger.kernel.org
>> Subject: kTLS getsockopt TLS_RX support
>>
>> Hello,
>>
>> While trying the kTLS, I found out that currently, there is no support for kTLS
>> getsockopt TLS_RX which extracts receive side crypto information from kTLS
>> socket. Since setting crypto information for RX side is supported, I felt
>> wonder why it is not supported.
>>
>> Is there any particular reason for it?
>
> What use case do you have in mind?
> Why give back state of record layer which also contains (record sequence number) to user space?
I’d like to checkpoint/restore the TLS session in conjunction with TCP_REPAIR.
When we checkpoint the kTLS session, we need to pick the record sequence number or
any other session information from kernel. For TX side, it is already supported (getsockopt
TLS_TX), so I’m wondering why RX side is missing.
Is there any technical difficulty or it will never supported in future?
Regards,
Yutaro
>
>>
>> Regards,
>> Yutaro
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: kTLS getsockopt TLS_RX support
2019-02-24 5:31 ` Hayakawa Yutaro
@ 2019-02-24 5:33 ` Vakul Garg
2019-02-24 5:59 ` Hayakawa Yutaro
0 siblings, 1 reply; 5+ messages in thread
From: Vakul Garg @ 2019-02-24 5:33 UTC (permalink / raw)
To: Hayakawa Yutaro; +Cc: netdev@vger.kernel.org
> -----Original Message-----
> From: Hayakawa Yutaro <yhayakawa3720subscribe@gmail.com>
> Sent: Sunday, February 24, 2019 11:01 AM
> To: Vakul Garg <vakul.garg@nxp.com>
> Cc: netdev@vger.kernel.org
> Subject: Re: kTLS getsockopt TLS_RX support
>
>
> > 2019/02/24 10:50、Vakul Garg <vakul.garg@nxp.com>のメール:
> >
> >
> >
> >> -----Original Message-----
> >> From: netdev-owner@vger.kernel.org <netdev-owner@vger.kernel.org>
> On
> >> Behalf Of Hayakawa Yutaro
> >> Sent: Saturday, February 23, 2019 10:59 PM
> >> To: netdev@vger.kernel.org
> >> Subject: kTLS getsockopt TLS_RX support
> >>
> >> Hello,
> >>
> >> While trying the kTLS, I found out that currently, there is no
> >> support for kTLS getsockopt TLS_RX which extracts receive side crypto
> >> information from kTLS socket. Since setting crypto information for RX
> >> side is supported, I felt wonder why it is not supported.
> >>
> >> Is there any particular reason for it?
> >
> > What use case do you have in mind?
> > Why give back state of record layer which also contains (record sequence
> number) to user space?
>
> I’d like to checkpoint/restore the TLS session in conjunction with
> TCP_REPAIR.
>
> When we checkpoint the kTLS session, we need to pick the record sequence
> number or any other session information from kernel. For TX side, it is
> already supported (getsockopt TLS_TX), so I’m wondering why RX side is
> missing.
>
> Is there any technical difficulty or it will never supported in future?
Don't think so.
Will you submit a patch?
> Regards,
> Yutaro
>
> >
> >>
> >> Regards,
> >> Yutaro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kTLS getsockopt TLS_RX support
2019-02-24 5:33 ` Vakul Garg
@ 2019-02-24 5:59 ` Hayakawa Yutaro
0 siblings, 0 replies; 5+ messages in thread
From: Hayakawa Yutaro @ 2019-02-24 5:59 UTC (permalink / raw)
To: Vakul Garg; +Cc: netdev@vger.kernel.org
> 2019/02/24 14:33、Vakul Garg <vakul.garg@nxp.com>のメール:
>
>
>
>> -----Original Message-----
>> From: Hayakawa Yutaro <yhayakawa3720subscribe@gmail.com>
>> Sent: Sunday, February 24, 2019 11:01 AM
>> To: Vakul Garg <vakul.garg@nxp.com>
>> Cc: netdev@vger.kernel.org
>> Subject: Re: kTLS getsockopt TLS_RX support
>>
>>
>>> 2019/02/24 10:50、Vakul Garg <vakul.garg@nxp.com>のメール:
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: netdev-owner@vger.kernel.org <netdev-owner@vger.kernel.org>
>> On
>>>> Behalf Of Hayakawa Yutaro
>>>> Sent: Saturday, February 23, 2019 10:59 PM
>>>> To: netdev@vger.kernel.org
>>>> Subject: kTLS getsockopt TLS_RX support
>>>>
>>>> Hello,
>>>>
>>>> While trying the kTLS, I found out that currently, there is no
>>>> support for kTLS getsockopt TLS_RX which extracts receive side crypto
>>>> information from kTLS socket. Since setting crypto information for RX
>>>> side is supported, I felt wonder why it is not supported.
>>>>
>>>> Is there any particular reason for it?
>>>
>>> What use case do you have in mind?
>>> Why give back state of record layer which also contains (record sequence
>> number) to user space?
>>
>> I’d like to checkpoint/restore the TLS session in conjunction with
>> TCP_REPAIR.
>>
>> When we checkpoint the kTLS session, we need to pick the record sequence
>> number or any other session information from kernel. For TX side, it is
>> already supported (getsockopt TLS_TX), so I’m wondering why RX side is
>> missing.
>>
>> Is there any technical difficulty or it will never supported in future?
>
> Don't think so.
> Will you submit a patch?
Since I am one of the beginner user of kTLS, I don’t have much knowledge about the
internal, but I have my own patch. I can test and submit it to here.
Yutaro
>
>> Regards,
>> Yutaro
>>
>>>
>>>>
>>>> Regards,
>>>> Yutaro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-02-24 6:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23 17:29 kTLS getsockopt TLS_RX support Hayakawa Yutaro
2019-02-24 1:50 ` Vakul Garg
2019-02-24 5:31 ` Hayakawa Yutaro
2019-02-24 5:33 ` Vakul Garg
2019-02-24 5:59 ` Hayakawa Yutaro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox