diff options
author | David S. Miller <davem@davemloft.net> | 2019-10-04 14:07:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 14:07:07 -0700 |
commit | 6d4e4ddc75ebd2849c57beeec6c6b07c2c0fbd18 (patch) | |
tree | 8339b6e05b89e835450b9981b31c0a4df6677dce /drivers/net/phy/broadcom.c | |
parent | 033b2c7f0f26d236f5e87888aca3d5ecb6a64cb7 (diff) | |
parent | 53b4414a7003099f41ab61ef9a452804c025e2c1 (diff) | |
download | linux-6d4e4ddc75ebd2849c57beeec6c6b07c2c0fbd18.tar.bz2 |
Merge branch 'net-tls-separate-the-TLS-TOE-code-out'
Jakub Kicinski says:
====================
net/tls: separate the TLS TOE code out
We have 3 modes of operation of TLS - software, crypto offload
(Mellanox, Netronome) and TCP Offload Engine-based (Chelsio).
The last one takes over the socket, like any TOE would, and
is not really compatible with how we want to do things in the
networking stack.
Confusingly the name of the crypto-only offload mode is TLS_HW,
while TOE-offload related functions use tls_hw_ as their prefix.
Engineers looking to implement offload are also be faced with
TOE artefacts like struct tls_device (while, again,
CONFIG_TLS_DEVICE actually gates the non-TOE offload).
To improve the clarity of the offload code move the TOE code
into new files, and rename the functions and structures
appropriately.
Because TOE-offload takes over the socket, and makes no use of
the TLS infrastructure in the kernel, the rest of the code
(anything beyond the ULP setup handlers) do not have to worry
about the mode == TLS_HW_RECORD case.
The increase in code size is due to duplication of the full
license boilerplate. Unfortunately original author (Dave Watson)
seems unreachable :(
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/broadcom.c')
0 files changed, 0 insertions, 0 deletions