From: Dave Watson <davejwatson@fb.com>
To: Atul Gupta <atul.gupta@chelsio.com>
Cc: "sd@queasysnail.net" <sd@queasysnail.net>,
"herbert@gondor.apana.org.au" <herbert@gondor.apana.org.au>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"ganeshgr@chelsio.co" <ganeshgr@chelsio.co>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
Boris Pismenny <borisp@mellanox.com>,
Ilya Lesokhin <ilyal@mellanox.com>
Subject: Re: [RFC crypto v3 8/9] chtls: Register the ULP
Date: Wed, 31 Jan 2018 08:43:47 -0800 [thread overview]
Message-ID: <20180131164347.GA34501@davejwatson-mba> (raw)
In-Reply-To: <9e81c5b4-f319-8b33-5dec-dad19582bde4@chelsio.com>
On 01/31/18 04:14 PM, Atul Gupta wrote:
>
>
> On Tuesday 30 January 2018 10:41 PM, Dave Watson wrote:
> > On 01/30/18 06:51 AM, Atul Gupta wrote:
> >
> > > What I was referring is that passing "tls" ulp type in setsockopt
> > > may be insufficient to make the decision when multi HW assist Inline
> > > TLS solution exists.
> > Setting the ULP doesn't choose HW or SW implementation, I think that
> > should be done later when setting up crypto with
> >
> > setsockopt(SOL_TLS, TLS_TX, struct crypto_info).
> setsockpot [mentioned above] is quite late for driver to enable HW
> implementation, we require something as early as tls_init [setsockopt(sock,
> SOL_TCP, TCP_ULP, "tls", sizeof("tls"))], for driver to set HW prot and
> offload connection beside Inline Tx/Rx.
> >
> > Any reason we can't use ethtool to choose HW vs SW implementation, if
> > available on the device?
> Thought about it, the interface index is not available to fetch netdev and
> caps check to set HW prot eg. bind [prot.hash] --> tls_hash to program HW.
Perhaps this is the part I don't follow - why do you need to override
hash and check for LISTEN? I briefly looked through the patch named
"CPL handler definition", this looks like it is a full TCP offload?
next prev parent reply other threads:[~2018-01-31 16:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 21:08 [RFC crypto v3 8/9] chtls: Register the ULP Dave Watson
2018-01-28 5:55 ` Atul Gupta
2018-01-30 6:51 ` Atul Gupta
2018-01-30 17:11 ` Dave Watson
2018-01-31 10:44 ` Atul Gupta
2018-01-31 16:43 ` Dave Watson [this message]
2018-01-31 18:28 ` Atul Gupta
2018-02-08 10:26 ` Atul Gupta
2018-02-08 10:34 ` Vakul Garg
-- strict thread matches above, loose matches on Subject: below --
2017-12-20 11:38 Atul Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180131164347.GA34501@davejwatson-mba \
--to=davejwatson@fb.com \
--cc=atul.gupta@chelsio.com \
--cc=borisp@mellanox.com \
--cc=davem@davemloft.net \
--cc=ganeshgr@chelsio.co \
--cc=herbert@gondor.apana.org.au \
--cc=ilyal@mellanox.com \
--cc=linux-crypto@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sd@queasysnail.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).