Re: mpsafe aesni

2016-04-18 Thread Mark Kettenis
> From: Mike Belopuhov > Date: Tue, 12 Apr 2016 15:33:42 +0200 > > >> > Another question I have is why are you using an IPL_HIGH mutex? > >> > >> The crypto code may be called from any subsystem, so that is the only > >> safe choice. > > > > Well, it's not called from all subsystems, just those th

Re: mpsafe aesni

2016-04-12 Thread Mike Belopuhov
On 26 March 2016 at 16:25, Mike Belopuhov wrote: > On Fri, Mar 25, 2016 at 22:43 +0100, Mark Kettenis wrote: >> > From: Mike Belopuhov >> > Date: Thu, 24 Mar 2016 21:33:25 +0100 >> > >> > On 24 March 2016 at 20:53, Mark Kettenis wrote: >> > > Diff below makes aesni crypto "mpsafe". It adds a CR

Re: mpsafe aesni

2016-03-27 Thread mxb
Not sure how much I can test here, but my tunnels are up. As well as my bgp sessions (this is "ART box” now) on top. I use aes-128-gcm. This is vmware. //mxb > On 26 mars 2016, at 16:25, Mike Belopuhov wrote: > > On Fri, Mar 25, 2016 at 22:43 +0100, Mark Kettenis wrote: >>> From: Mike Belopuho

Re: mpsafe aesni

2016-03-26 Thread Mike Belopuhov
On Fri, Mar 25, 2016 at 22:43 +0100, Mark Kettenis wrote: > > From: Mike Belopuhov > > Date: Thu, 24 Mar 2016 21:33:25 +0100 > > > > On 24 March 2016 at 20:53, Mark Kettenis wrote: > > > Diff below makes aesni crypto "mpsafe". It adds a CRYPTOCAP_F_MPSAFE > > > flag that makes the crypto framew

Re: mpsafe aesni

2016-03-25 Thread Mark Kettenis
> From: Mike Belopuhov > Date: Thu, 24 Mar 2016 21:33:25 +0100 > > On 24 March 2016 at 20:53, Mark Kettenis wrote: > > Diff below makes aesni crypto "mpsafe". It adds a CRYPTOCAP_F_MPSAFE > > flag that makes the crypto framework dispatch to an mpsafe taskq if it > > is set. In order to make th

Re: mpsafe aesni

2016-03-24 Thread Mike Belopuhov
On 24 March 2016 at 20:53, Mark Kettenis wrote: > Diff below makes aesni crypto "mpsafe". It adds a CRYPTOCAP_F_MPSAFE > flag that makes the crypto framework dispatch to an mpsafe taskq if it > is set. In order to make the aesni_process() function that does the > actual crypto work mpsafe, it mo

mpsafe aesni

2016-03-24 Thread Mark Kettenis
Diff below makes aesni crypto "mpsafe". It adds a CRYPTOCAP_F_MPSAFE flag that makes the crypto framework dispatch to an mpsafe taskq if it is set. In order to make the aesni_process() function that does the actual crypto work mpsafe, it moves the code over to a per-session working buffer. This