summaryrefslogtreecommitdiffstats
path: root/Documentation/networking/tls-offload.rst
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2021-01-17 16:15:38 +0100
committerJakub Kicinski <kuba@kernel.org>2021-01-20 00:58:05 +0100
commita3eb4e9d4c9218476d05c52dfd2be3d6fdce6b91 (patch)
treeb872ed28ca6a97f8820df9fcf7b069aa31396d84 /Documentation/networking/tls-offload.rst
parentMerge branch 'ipv4-ensure-ecn-bits-don-t-influence-source-address-validation' (diff)
downloadlinux-a3eb4e9d4c9218476d05c52dfd2be3d6fdce6b91.tar.xz
linux-a3eb4e9d4c9218476d05c52dfd2be3d6fdce6b91.zip
net: Disable NETIF_F_HW_TLS_RX when RXCSUM is disabled
With NETIF_F_HW_TLS_RX packets are decrypted in HW. This cannot be logically done when RXCSUM offload is off. Fixes: 14136564c8ee ("net: Add TLS RX offload feature") Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Boris Pismenny <borisp@nvidia.com> Link: https://lore.kernel.org/r/20210117151538.9411-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/networking/tls-offload.rst')
-rw-r--r--Documentation/networking/tls-offload.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/networking/tls-offload.rst b/Documentation/networking/tls-offload.rst
index 9af3334d9ad0..5f0dea3d571e 100644
--- a/Documentation/networking/tls-offload.rst
+++ b/Documentation/networking/tls-offload.rst
@@ -534,3 +534,6 @@ offload. Hence, TLS TX device feature flag requires TX csum offload being set.
Disabling the latter implies clearing the former. Disabling TX checksum offload
should not affect old connections, and drivers should make sure checksum
calculation does not break for them.
+Similarly, device-offloaded TLS decryption implies doing RXCSUM. If the user
+does not want to enable RX csum offload, TLS RX device feature is disabled
+as well.