Page MenuHomeFreeBSD

ktls_test: Permit connecting to a remote echo server for tests.
ClosedPublic

Authored by jhb on Jun 7 2022, 9:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 10:48 PM
Unknown Object (File)
Feb 3 2024, 2:03 AM
Unknown Object (File)
Dec 20 2023, 4:57 AM
Unknown Object (File)
Dec 4 2023, 11:53 AM
Unknown Object (File)
Dec 4 2023, 11:53 AM
Unknown Object (File)
Dec 4 2023, 11:53 AM
Unknown Object (File)
Dec 4 2023, 11:39 AM
Unknown Object (File)
Sep 6 2023, 5:02 PM
Subscribers

Details

Summary

Previously ktls tests always executed over a local socket pair.
ktls.host can be set to a host to connect to with a single socket
instead. The remote end is expected to echo back any data received
(such as the echo service). The port can be set with ktls.port which
defaults to "echo".

This is primarily useful to permit testing NIC TLS offload use cases
where the traffic needs to transit the NIC.

Note that the variables must be set via
'kyua -v test_suites.FreeBSD.ktls.host=host'.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
tests/sys/kern/ktls_test.c
180
194

errno will get clobbered before the warning is printed below. So it should be preserved and used with warnc(), or warnx() should be used instead.

This revision is now accepted and ready to land.Jun 13 2022, 6:24 PM
jhb marked 2 inline comments as done.Jun 14 2022, 5:32 PM