From owner-cvs-all Sat Feb 22 23:25:51 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B397C37B401; Sat, 22 Feb 2003 23:25:48 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6220B43FA3; Sat, 22 Feb 2003 23:25:48 -0800 (PST) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1N7Pm0U027044; Sat, 22 Feb 2003 23:25:48 -0800 (PST) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1N7Pmw2027043; Sat, 22 Feb 2003 23:25:48 -0800 (PST) Message-Id: <200302230725.h1N7Pmw2027043@repoman.freebsd.org> From: Sam Leffler Date: Sat, 22 Feb 2003 23:25:48 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netipsec xform_ah.c xform_esp.c xform_ipcomp.c src/sys/opencrypto crypto.c cryptodev.c cryptodev.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sam 2003/02/22 23:25:48 PST Modified files: sys/netipsec xform_ah.c xform_esp.c xform_ipcomp.c sys/opencrypto crypto.c cryptodev.c cryptodev.h Log: 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. Revision Changes Path 1.2 +1 -1 src/sys/netipsec/xform_ah.c 1.4 +1 -1 src/sys/netipsec/xform_esp.c 1.2 +1 -1 src/sys/netipsec/xform_ipcomp.c 1.9 +73 -27 src/sys/opencrypto/crypto.c 1.10 +2 -1 src/sys/opencrypto/cryptodev.c 1.4 +4 -2 src/sys/opencrypto/cryptodev.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message