diff options
author | sam <sam@FreeBSD.org> | 2003-02-23 07:25:48 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-02-23 07:25:48 +0000 |
commit | 9da403e48c25f4100a1febdffa6b0aa4c372c7fa (patch) | |
tree | 155a5fdfbb58ff3efa24ed1044f606c88169ca24 /sys/netipsec/xform_ipcomp.c | |
parent | 2702599ca0d83dc1569763a7ca8e6efb644bef2b (diff) | |
download | FreeBSD-src-9da403e48c25f4100a1febdffa6b0aa4c372c7fa.zip FreeBSD-src-9da403e48c25f4100a1febdffa6b0aa4c372c7fa.tar.gz |
o add a CRYPTO_F_CBIMM flag to symmetric ops to indicate the callback
should be done in crypto_done rather than in the callback thread
o use this flag to mark operations from /dev/crypto since the callback
routine just does a wakeup; this eliminates the last unneeded ctx switch
o change CRYPTO_F_NODELAY to CRYPTO_F_BATCH with an inverted meaning
so "0" becomes the default/desired setting (needed for user-mode
compatibility with openbsd)
o change crypto_dispatch to honor CRYPTO_F_BATCH instead of always
dispatching immediately
o remove uses of CRYPTO_F_NODELAY
o define COP_F_BATCH for ops submitted through /dev/crypto and pass
this on to the op that is submitted
Similar changes and more eventually coming for asymmetric ops.
MFC if re gives approval.
Diffstat (limited to 'sys/netipsec/xform_ipcomp.c')
-rw-r--r-- | sys/netipsec/xform_ipcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/xform_ipcomp.c b/sys/netipsec/xform_ipcomp.c index 108d356..75b3d75 100644 --- a/sys/netipsec/xform_ipcomp.c +++ b/sys/netipsec/xform_ipcomp.c @@ -173,7 +173,7 @@ ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) /* Crypto operation descriptor */ crp->crp_ilen = m->m_pkthdr.len - (skip + hlen); - crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_NODELAY; + crp->crp_flags = CRYPTO_F_IMBUF; crp->crp_buf = (caddr_t) m; crp->crp_callback = ipcomp_input_cb; crp->crp_sid = sav->tdb_cryptoid; |