Re: [Ocf-linux-users] OCF inbuilt and 2.6.27
Brought to you by:
david-m
|
From: David M. <Dav...@se...> - 2009-03-18 05:15:18
|
Jivin Daniel Mueller lays it down ... > On Tue, 17 Mar 2009 10:38:47 +1000 David McCullough wrote: > > > [.. snip ..] > > Use the talitos driver as an example. From what I have seen it should > > be fairly easy to follow. > > Thanks for all this information. I'll have a look at it. > > BTW: the ubsec_ssb OCF driver is now part of OpenWRT [1]. I got Did you want to send in a copy to include in ocf-linux ? > positive feedback from a few people. The only application(s) that can > be accelerated at the moment is libopenssl with OpenSSH. > > I am still having problems with OpenSWAN. Unfortunately packets that > need to be forwarded from one network (e.g. LAN1) to another network > (e.g. Wifi) are not 32bit memory aligned. So in-place > encryption/decryption does not work here (HW requires 32bit aligned > memory for its output data buffer). I couldn't figure out why this > happens - maybe it's the network(-switch) driver, that uses VLAN tags. > If I were allowed to use a different (aligned) memory address for the > output data I could extend the driver to work like this. You could add a local buffer to each session in your driver, and, if the request was unaligned, output to it and copy back when done. On these slow CPU's a memcpy of a 1000 bytes is still much faster than the crypto op. That would at least get you working transparently and allow you to use it for openswan ;-) Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org |