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)
Oct 22 2024, 10:14 AM
Unknown Object (File)
Sep 30 2024, 6:29 AM
Unknown Object (File)
Sep 17 2024, 2:16 AM
Unknown Object (File)
Sep 15 2024, 11:22 PM
Unknown Object (File)
Sep 4 2024, 3:54 PM
Unknown Object (File)
Sep 2 2024, 8:11 AM
Unknown Object (File)
Aug 31 2024, 1:21 AM
Unknown Object (File)
Aug 21 2024, 2: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