diff options
author | Jakub Kicinski <[email protected]> | 2019-06-05 14:11:39 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-06-06 14:13:40 -0700 |
commit | 2e361176ea01c4b2f90b17c2264a2a794050c3f3 (patch) | |
tree | 407a31cf337a174075de097c6c4a179b6517991f /net/unix/sysctl_net_unix.c | |
parent | 2d6b51c6924c1bba8e4948dc4a2dbc96bf685b97 (diff) |
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 <[email protected]>
Reviewed-by: Dirk van der Merwe <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions