diff --git a/net/core/dev.c b/net/core/dev.c index 20c7fd7b8b4bce444c4a1365f9da05aad269d9ee..ec66d13d2bdad6a5ce1592415bba86f6c4e25349 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -8692,6 +8692,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; }