summaryrefslogtreecommitdiff
path: root/net/tls
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-06-06 00:11:39 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-07 00:13:40 +0300
commit2e361176ea01c4b2f90b17c2264a2a794050c3f3 (patch)
tree407a31cf337a174075de097c6c4a179b6517991f /net/tls
parent2d6b51c6924c1bba8e4948dc4a2dbc96bf685b97 (diff)
downloadlinux-2e361176ea01c4b2f90b17c2264a2a794050c3f3.tar.xz
net/tls: simplify driver context retrieval
Currently drivers have to ensure the alignment of their tls state structure, which leads to unnecessary layers of getters and encapsulated structures in each driver. Simplify all this by marking the driver state as aligned (driver_state members are currently aligned, so no hole is added, besides ALIGN in TLS_OFFLOAD_CONTEXT_SIZE_RX/TX would reserve this extra space, anyway.) With that we can add a common accessor to the core. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tls')
0 files changed, 0 insertions, 0 deletions