Date: Thu, 8 Feb 2018 00:59:56 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r329008 - stable/11/tests/sys/opencrypto Message-ID: <201802080059.w180xuLN042781@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu Feb 8 00:59:56 2018 New Revision: 329008 URL: https://svnweb.freebsd.org/changeset/base/329008 Log: MFC 319454: 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. Modified: stable/11/tests/sys/opencrypto/cryptodev.py Directory Properties: stable/11/ (props changed) Modified: stable/11/tests/sys/opencrypto/cryptodev.py ============================================================================== --- stable/11/tests/sys/opencrypto/cryptodev.py Thu Feb 8 00:42:28 2018 (r329007) +++ stable/11/tests/sys/opencrypto/cryptodev.py Thu Feb 8 00:59:56 2018 (r329008) @@ -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?201802080059.w180xuLN042781>