Move the check out of ktls_enable_(rx|tx) and into ktls_create_session.
Sponsored by: Chelsio Communications
Differential D57973
ktls: Centralize the check for CBC ciphers Authored by jhb on Tue, Jun 30, 8:32 PM. Tags None Referenced Files
Details
Move the check out of ktls_enable_(rx|tx) and into ktls_create_session. Sponsored by: Chelsio Communications
Diff Detail
Event TimelineComment Actions I got the expected failures when toggling this and running kyua ktls_test. From Claude: Commit: 50ac71cacbc4 — ktls: Centralize the check for CBC ciphers
This moves the ktls_cbc_enable guard from ktls_enable_rx() and ktls_enable_tx() into ktls_create_session(), placing it just
before the CBC cipher's switch on auth_algorithm.
- The centralization is correct: ktls_create_session() is the natural choke point shared by both paths.
- Minor: the error code changes from ENOTSUP to EOPNOTSUPP. On FreeBSD these share the same value (45), so no behavioral
difference, but worth being aware of.
- No other issues.For the minor point Claude noted, ENOTSUP is an alternate spelling, EOPNOTSUPP is the canonical version for BSD. |