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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -39,7 +39,7 @@ · 38 unmodified lines | ||
| 39 | 39 | /* TLS socket options */ |
| 40 | 40 | #define TLS_TX 1 /* Set transmit parameters */ |
| 41 | 41 | #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) */ | |
| 43 | 43 | |
| 44 | 44 | /* Supported versions */ |
| 45 | 45 | #define TLS_VERSION_MINOR(ver) ((ver) & 0xFF) |
| @@ -161,7 +161,7 @@ enum { · 115 unmodified lines | ||
| 161 | 161 | TLS_INFO_CIPHER, |
| 162 | 162 | TLS_INFO_TXCONF, |
| 163 | 163 | TLS_INFO_RXCONF, |
| 164 | − TLS_INFO_ZC_SENDFILE, | |
| 164 | + TLS_INFO_ZC_RO_TX, | |
| 165 | 165 | __TLS_INFO_MAX, |
| 166 | 166 | }; |
| 167 | 167 | #define TLS_INFO_MAX (__TLS_INFO_MAX - 1) |