From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: Crypto Update for 2.6.38 Date: Thu, 6 Jan 2011 15:25:32 -0800 Message-ID: References: <20100804140448.GA4042@gondor.apana.org.au> <20101024061625.GA23715@gondor.apana.org.au> <20110106000157.GA16089@gondor.apana.org.au> <20110106211645.GA26184@gondor.apana.org.au> <20110106213932.GA26538@gondor.apana.org.au> <20110106223042.GA27080@gondor.apana.org.au> <20110106225301.GA27358@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "David S. Miller" , Linux Kernel Mailing List , Linux Crypto Mailing List To: Herbert Xu Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:50232 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513Ab1AFXZz convert rfc822-to-8bit (ORCPT ); Thu, 6 Jan 2011 18:25:55 -0500 In-Reply-To: <20110106225301.GA27358@gondor.apana.org.au> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Thu, Jan 6, 2011 at 2:53 PM, Herbert Xu wrote: > On Thu, Jan 06, 2011 at 02:43:35PM -0800, Linus Torvalds wrote: >> >> Can you do the "bypass directly to the TCP stream" with the interfac= e >> you added? It isn't at all obvious how it would work. > > Yes it can. =A0The interface allows zero-copy in both directions > using the splice interface. =A0Here is a sample program demonstrating > zero-copy in-place encryption. =A0It doesn't send the result over TCP > but I'm sure you can imagine what that would look like. Ok. So can we actually get numbers for this? Put another way: I really really REALLY don't want to merge new user-space interfaces that don't actually work in reality. But if this allows direct encryption to a network interface, and it actually is able to saturate 10Gb on niagara (unlike a user-mode encryption thing, I assume, since those things are dog slow), then that would certainly be a good real-life test. But I really don't want to merge it unless it has had at least real-life testing of actually doing better than regular sw user-space encryption. I realize that on PC's, it's unlikely to ever help. So I'm not asking for "show me how this helps on my hardware". But I do want to get some case on _some_ actual hardware where it works on a real load. Linus