net: Disable NETIF_F_HW_TLS_RX when RXCSUM is disabled
authorTariq Toukan <tariqt@nvidia.com>
Sun, 17 Jan 2021 15:15:38 +0000 (17:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 23:58:05 +0000 (15:58 -0800)
commita3eb4e9d4c9218476d05c52dfd2be3d6fdce6b91
treeb872ed28ca6a97f8820df9fcf7b069aa31396d84
parent2565ff4eef34e03af67b7447c232c858f46b6e3b
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>
Documentation/networking/tls-offload.rst
net/core/dev.c