Jivin Nawang Chhetan lays it down ...
> Hi David,
> My device is ipsec driver(i.e. a consumer in Ocf jargon)
> using Ocf for look aside crypto. The provider I am using is safe.
Ok, that makes sense. You won't be able to just free requests that are
pending in the OCF layer. There is no cancel option.
Once a request has been handed to OCF you will need to wait for OCF to
complete it. It could be tied up in the actual crypto driver or
waiting in an OCF queue.
Your driver close routine should wait for pending requests to complete
before allowing the unload.
Cheers,
Davidm
> On Mon, Nov 10, 2008 at 4:55 PM, David McCullough
> <Dav...@se...> wrote:
> >
> > Jivin Nawang Chhetan lays it down ...
> >> Hi All,
> >> My device is using Ocf(i.e. offloading symmetric
> >> operations), now while doing this I unload the device. But before
> >> doing this I have to be sure that all offloaded operations are
> >> processed Or atleast inform Ocf that there is no need to process those
> >> operations.
> >> I think calling crypto_freereq for all the operation is safe and
> >> sufficient. Is there a better way to do this ?
> >
> > Is your device an OCF HW driver (ie., hifn, safe, ...) or a
> > driver (like ipsec) using OCF for crypto ?
> >
> > Cheers,
> > Davidm
> >
> > --
> > David McCullough, dav...@se..., Ph:+61 734352815
> > Secure Computing - SnapGear http://www.uCdot.org http://www.snapgear.com
> >
>
>
>
> --
> Nawang Chhetan
> Software Engineer
> SafeNet India.
>
--
David McCullough, dav...@se..., Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.snapgear.com
|