diff --git a/net/core/dev.c b/net/core/dev.c index c77d12a35f923ab96c496bc4183f5393cf3524fa..5d9800804d4a4ca2ac5142054f0807f3d1f11553 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -8351,6 +8351,11 @@ static netdev_features_t netdev_fix_features(struct net_device *dev, } } + if ((features & NETIF_F_HW_TLS_RX) && !(features & NETIF_F_RXCSUM)) { + netdev_dbg(dev, "Dropping TLS RX HW offload feature since no RXCSUM feature.\n"); + features &= ~NETIF_F_HW_TLS_RX; + } + return features; }