Re: Hardware acceleration indication in af_alg

2011-11-02 Thread Herbert Xu
Jamie Iles wrote: > >> diff --git a/include/linux/crypto.h b/include/linux/crypto.h >> index de9adec..3e14cee 100644 >> --- a/include/linux/crypto.h >> +++ b/include/linux/crypto.h >> @@ -51,6 +51,11 @@ >> #define CRYPTO_ALG_DYING 0x0040 >> #define CRYPTO_ALG_ASYNC 0x

Re: Hardware acceleration indication in af_alg

2011-11-01 Thread Nikos Mavrogiannopoulos
On 11/01/2011 01:59 PM, Jamie Iles wrote: > Hi Nikos, > > On Tue, Nov 01, 2011 at 01:43:26PM +0100, Nikos Mavrogiannopoulos wrote: [...] >> I suppose that no answer means there is no way. In that case would you >> consider this or a similar patch to indicate whether a driver provides >> an algorit

Re: Hardware acceleration indication in af_alg

2011-11-01 Thread Jamie Iles
Hi Nikos, On Tue, Nov 01, 2011 at 01:43:26PM +0100, Nikos Mavrogiannopoulos wrote: > On 10/28/2011 06:24 PM, Nikos Mavrogiannopoulos wrote: > > >>> I can imagine, an alternative approach and perhaps better > >>> approach would be to measure the speed of the kernel provided > >>> algorithm against

Re: Hardware acceleration indication in af_alg

2011-11-01 Thread Nikos Mavrogiannopoulos
On 10/28/2011 06:24 PM, Nikos Mavrogiannopoulos wrote: >>> I can imagine, an alternative approach and perhaps better >>> approach would be to measure the speed of the kernel provided >>> algorithm against a software implementation, but there are many >>> other factors that could influence the resu

Re: Hardware acceleration indication in af_alg

2011-10-28 Thread Nikos Mavrogiannopoulos
On 10/21/2011 03:23 PM, Herbert Xu wrote: > Matthias-Christian Ott wrote: >> I did some experiments with af_alg and noticed that to be really >> useful, it should indicate whether a certain algorithm is hardware >> accelerated. I guess this has to be inferred by the priority of the >> algorithm co

Re: Hardware acceleration indication in af_alg

2011-10-21 Thread Matthias-Christian Ott
On Fri, Oct 21, 2011 at 04:15:41PM +0200, Matthias-Christian Ott wrote: > On Fri, Oct 21, 2011 at 03:23:36PM +0200, Herbert Xu wrote: > > Matthias-Christian Ott wrote: > > > I did some experiments with af_alg and noticed that to be really > > > useful, it should indicate whether a certain algorith

Re: Hardware acceleration indication in af_alg

2011-10-21 Thread Matthias-Christian Ott
On Fri, Oct 21, 2011 at 03:23:36PM +0200, Herbert Xu wrote: > Matthias-Christian Ott wrote: > > I did some experiments with af_alg and noticed that to be really > > useful, it should indicate whether a certain algorithm is hardware > > accelerated. I guess this has to be inferred by the priority o

Re: Hardware acceleration indication in af_alg

2011-10-21 Thread Herbert Xu
Matthias-Christian Ott wrote: > I did some experiments with af_alg and noticed that to be really > useful, it should indicate whether a certain algorithm is hardware > accelerated. I guess this has to be inferred by the priority of the > algorithm could be made available via a read-only socket opt