tls: use fixed size for tls_offload_context_{tx,rx}.driver_state
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 9 Oct 2023 20:50:54 +0000 (22:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 10:26:10 +0000 (11:26 +0100)
commit9f0c8245516bc30cff770c3a69a6baaf8eef8810
tree5d634acd17e6e0cb130d50816fb1eefb90a1a39e
parent0700aa3a7503a552d9d2df525711e4700982ee31
tls: use fixed size for tls_offload_context_{tx,rx}.driver_state

driver_state is a flex array, but is always allocated by the tls core
to a fixed size (TLS_DRIVER_STATE_SIZE_{TX,RX}). Simplify the code by
making that size explicit so that sizeof(struct
tls_offload_context_{tx,rx}) works.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c