Re: [RFC] [PATCH v2 3/4] xfrm: Add a netlink attribute for software crypto accelerators

2009-04-28 Thread Steffen Klassert
On Mon, Apr 27, 2009 at 04:53:46PM +0800, Herbert Xu wrote: > > While this should work for pcrypt, I'd like this to be solved > more generally. The crux of the issue is that we can't specify > an arbitrary implementation of a given algorithm. So the obvious > solution is to specify the driver na

Re: [RFC] [PATCH v2 3/4] xfrm: Add a netlink attribute for software crypto accelerators

2009-04-27 Thread Herbert Xu
On Fri, Apr 24, 2009 at 12:28:28PM +0200, Steffen Klassert wrote: > > +struct xfrm_accl { > + charname[64]; > + __u8type; > +#define XFRM_ACCL_ENC1 > +#define XFRM_ACCL_AUTH 2 > +#define XFRM_ACCL_COMP 4 > +#define XFRM_ACCL_AEAD 8 > +}; While this

[RFC] [PATCH v2 3/4] xfrm: Add a netlink attribute for software crypto accelerators

2009-04-24 Thread Steffen Klassert
This patch adds a netlink attribute for software crypto accelerators like pcrypt. This makes it possible to choose a crypto accelerator template by it's name from the userspace. Signed-off-by: Steffen Klassert --- include/linux/xfrm.h | 10 ++ include/net/xfrm.h |3 +++ net/xfrm/