Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2017 19:27:38 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319454 - head/tests/sys/opencrypto
Message-ID:  <201706011927.v51JRcMd095446@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Jun  1 19:27:38 2017
New Revision: 319454
URL: https://svnweb.freebsd.org/changeset/base/319454

Log:
  Honor the requested crid when running a test.
  
  Otherwise, the kernel is free to choose an aribtrary crypto device
  rather than the requested device subverting tests that force the use
  of a specific device.
  
  MFC after:	1 week
  Sponsored by:	Chelsio Communications
  Differential Revision:	https://reviews.freebsd.org/D10762

Modified:
  head/tests/sys/opencrypto/cryptodev.py

Modified: head/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- head/tests/sys/opencrypto/cryptodev.py	Thu Jun  1 19:21:30 2017	(r319453)
+++ head/tests/sys/opencrypto/cryptodev.py	Thu Jun  1 19:27:38 2017	(r319454)
@@ -173,10 +173,7 @@ class Crypto:
 
 		if not cipher and not mac:
 			raise ValueError('one of cipher or mac MUST be specified.')
-		ses.crid = CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_HARDWARE
-		#ses.crid = CRYPTOCAP_F_HARDWARE
-		#ses.crid = CRYPTOCAP_F_SOFTWARE
-		#ses.crid = 0
+		ses.crid = crid
 		#print `ses`
 		s = array.array('B', ses.pack_hdr())
 		#print `s`



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706011927.v51JRcMd095446>