Subject: [PATCH v5 net-next 21/36] net: drop ULP DDP HW offload feature if no CSUM offload feature

From: Boris Pismenny <[email-masked]>
Date: Thu, 22 Jul 2021 14:03:10 +0300

From: Yoray Zack <[email-masked]>

Signed-off-by: Yoray Zack <[email-masked]>
---
 net/core/dev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/core/dev.c b/net/core/dev.c
index c253c2aafe97..1c8fcee2e9f9 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -9927,6 +9927,8 @@ static netdev_features_t netdev_fix_features(struct net_device *dev,
 		if (!ip_csum && !hw_csum) {
 			netdev_dbg(dev, "Dropping TLS TX HW offload feature since no CSUM feature.\n");
 			features &= ~NETIF_F_HW_TLS_TX;
+			netdev_dbg(dev, "Dropping ULP DDP HW offload feature since no CSUM feature.\n");
+			features &= ~NETIF_F_HW_ULP_DDP;
 		}
 	}
 
-- 
2.24.1