]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Rename TLS_INFO_ZC_SENDFILE to TLS_INFO_ZC_TX
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Wed, 8 Jun 2022 15:34:25 +0000 (18:34 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 04:51:57 +0000 (21:51 -0700)
commitf32e12e9ee7e782ca47b3911ee67c604b8868210
tree29d44e2627b4fa159efba9d7838df66ba17800c5
parentb96166e8de5dc20c3f48d6576f3105aa4958a0c1
tls: Rename TLS_INFO_ZC_SENDFILE to TLS_INFO_ZC_TX

To embrace possible future optimizations of TLS, rename zerocopy
sendfile definitions to more generic ones:

* setsockopt: TLS_TX_ZEROCOPY_SENDFILE- > TLS_TX_ZEROCOPY_RO
* sock_diag: TLS_INFO_ZC_SENDFILE -> TLS_INFO_ZC_RO_TX

RO stands for readonly and emphasizes that the application shouldn't
modify the data being transmitted with zerocopy to avoid potential
disconnection.

Fixes: ec84279dcc1d ("tls: Add opt-in zerocopy mode of sendfile()")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Link: https://lore.kernel.org/r/20220608153425.3151146-1-maximmi@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/tls.h
net/tls/tls_main.c