History

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.

Maxim Mikityanskiy committed 4 years ago

Commit b489a6e1 parent 825464e2 files · +6 −6Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/tls.h+2−2
@@ -39,7 +39,7 @@ · 38 unmodified lines
3939 /* TLS socket options */
4040 #define TLS_TX 1 /* Set transmit parameters */
4141 #define TLS_RX 2 /* Set receive parameters */
42−#define TLS_TX_ZEROCOPY_SENDFILE 3 /* transmit zerocopy sendfile */
42+#define TLS_TX_ZEROCOPY_RO 3 /* TX zerocopy (only sendfile now) */
4343
4444 /* Supported versions */
4545 #define TLS_VERSION_MINOR(ver) ((ver) & 0xFF)
@@ -161,7 +161,7 @@ enum { · 115 unmodified lines
161161 TLS_INFO_CIPHER,
162162 TLS_INFO_TXCONF,
163163 TLS_INFO_RXCONF,
164− TLS_INFO_ZC_SENDFILE,
164+ TLS_INFO_ZC_RO_TX,
165165 __TLS_INFO_MAX,
166166 };
167167 #define TLS_INFO_MAX (__TLS_INFO_MAX - 1)