HomeFreeBSD

ktls_test: Permit an option to skip tests not using ifnet TLS.

Description

ktls_test: Permit an option to skip tests not using ifnet TLS.

If ktls.require_ifnet is set to true, then check the TLS offload mode
for tests sending and receiving records and skip the test if the
offload mode is not ifnet mode.

This can be used along with ktls.host to run KTLS tests against a NIC
supporting ifnet TLS and verify that expected cipher suites and
directions used ifnet TLS rather than software TLS. Receive tests may
result in a false positive as receive ifnet TLS can use software as a
fallback.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D35427

(cherry picked from commit ea4ebdcb4da94a30fae53da74eda302aaa4ff1f3)

Details

Provenance
jhbAuthored on Jun 14 2022, 5:35 PM
Reviewer
markj
Differential Revision
D35427: ktls_test: Permit an option to skip tests not using ifnet TLS.
Parents
rG3736087e5815: ktls_test: Permit connecting to a remote echo server for tests.
Branches
Unknown
Tags
Unknown