Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1206485

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem
Date 2015-08-13 05:30 +0200
Message-ID <pWRnk-7WT-9@gated-at.bofh.it> (permalink)
References <pWQrf-6Be-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 13, 2015 at 11:24:13AM +0900, Joonsoo Kim wrote:
> Until now, zram uses compression algorithm through direct call
> to core algorithm function, but, it has drawback that we need to add
> compression algorithm manually to zram. If we don't do that, we cannot
> utilize various compression algorithms in the system. To improve this
> situation, zram will be changed to use crypto subsystem in following
> patch. There is one problem with this change. Zram has a interface
> that what compression algorithm it can support. Although crypto subsystem
> has /proc interface to search all of crypto algorithm, but, there is
> no way to get just compression algorithm in cryto subsystem. To implement
> it on zram-side, crypto_alg_list and rwsem should be exported so
> this patch do it.
> 
> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>

Nack.  We already have a netlink interface that can be used to
query algorithms and the type information is present in the report.
The interface is crypto_user and should be used instead of exporting
the raw list.

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] crypto: export crypto_alg_list and rwsem Joonsoo Kim <js1304@gmail.com> - 2015-08-13 04:30 +0200
  [PATCH 2/2] zram: use crypto API to compress the page Joonsoo Kim <js1304@gmail.com> - 2015-08-13 04:30 +0200
    Re: [PATCH 2/2] zram: use crypto API to compress the page Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-08-13 06:00 +0200
      Re: [PATCH 2/2] zram: use crypto API to compress the page Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-08-13 07:30 +0200
      Re: [PATCH 2/2] zram: use crypto API to compress the page Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-08-13 09:20 +0200
        Re: [PATCH 2/2] zram: use crypto API to compress the page Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-08-13 09:40 +0200
        Re: [PATCH 2/2] zram: use crypto API to compress the page Herbert Xu <herbert@gondor.apana.org.au> - 2015-08-13 09:40 +0200
  Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Herbert Xu <herbert@gondor.apana.org.au> - 2015-08-13 05:30 +0200
    Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-08-13 08:40 +0200
      Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Herbert Xu <herbert@gondor.apana.org.au> - 2015-08-13 08:50 +0200
        Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Herbert Xu <herbert@gondor.apana.org.au> - 2015-08-13 09:30 +0200
          Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-08-13 09:40 +0200
        Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-08-13 09:30 +0200

csiph-web