chcr_ktls: use tls_offload_context_tx and driver_state like other drivers
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 9 Oct 2023 20:50:53 +0000 (22:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 10:26:10 +0000 (11:26 +0100)
commit0700aa3a7503a552d9d2df525711e4700982ee31
treec6c8cb3dd637898978ed1a985af6a3e337578b57
parent1cf7fbcee60af932f815af5fc0ca5e7e8544ef82
chcr_ktls: use tls_offload_context_tx and driver_state like other drivers

chcr_ktls uses the space reserved in driver_state by
tls_set_device_offload, but makes up into own wrapper around
tls_offload_context_tx instead of accessing driver_state via the
__tls_driver_ctx helper.

In this driver, driver_state is only used to store a pointer to a
larger context struct allocated by the driver.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.h