All of lore.kernel.org
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Weigang Li <weigang.li@intel.com>
Cc: linux-crypto@vger.kernel.org, tadeusz.struk@intel.com,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>,
	Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Subject: Re: [PATCH] crypto: add asynchronous compression support
Date: Fri, 16 Oct 2015 23:13:54 +0800	[thread overview]
Message-ID: <20151016151354.GA16648@gondor.apana.org.au> (raw)
In-Reply-To: <1445008260-39367-1-git-send-email-weigang.li@intel.com>

On Fri, Oct 16, 2015 at 11:11:00PM +0800, Weigang Li wrote:
> This patch set introduces Asynchronous Compression API.
> What is proposed is a new crypto type called crypto_acomp_type, 
> plus new struct acomp_alg and struct crypto_acomp, together with number 
> of helper functions to register acomp type algorithms and allocate tfm 
> instances. This is to make it similar to how the existing crypto API 
> works for the ablkcipher, and akcipher types.
> The operations the new interface will provide are:
> 
> 	int (*compress)(struct acompress_request *req);
> 	int (*decompress)(struct acompress_request *req);
> 
> The benefits it gives interface are:
> - the new interface allows for asynchronous implementations and
>   scatterlist buffer that can use hardware to offload the compression
>   operations, the new asynchronous API can be called by the linux kernel
>   components (i.e., btrfs) who want to use hardware acceleration for data
>   compression.
> 
> New helper functions have been added to allocate crypto_acomp instances 
> and invoke the operations to make it easier to use.
> 
> Signed-off-by: Weigang Li <weigang.li@intel.com>

Thanks for the patch! Joonsoo Kim is also working on the compression
interface for zram.  Could you two collaborate and come up with one
interface rather than two?

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  reply	other threads:[~2015-10-16 15:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 15:11 [PATCH] crypto: add asynchronous compression support Weigang Li
2015-10-16 15:13 ` Herbert Xu [this message]
     [not found]   ` <929511EA6367314D8E32364A24D45FA612FE85D3@shsmsx102.ccr.corp.intel.com>
     [not found]     ` <000e01d10a12$9e381660$daa84320$@lge.com>
     [not found]       ` <20151019084905.GE963@bbox>
     [not found]         ` <20151021073322.GA31901@swordfish>
     [not found]           ` <20151021073418.GA14479@gondor.apana.org.au>
2015-10-21  7:59             ` Li, Weigang
2015-10-28 23:13               ` Dan Streetman
2015-11-06  1:55   ` Li, Weigang
2015-11-19  5:52   ` Li, Weigang
2015-11-19  9:42     ` Herbert Xu
2015-11-20  6:04       ` Joonsoo Kim
2015-11-20  6:19         ` Herbert Xu
2015-11-20  7:25           ` Li, Weigang

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=20151016151354.GA16648@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    --cc=tadeusz.struk@intel.com \
    --cc=weigang.li@intel.com \
    /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 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.