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

Boris Pismenny borisp at nvidia.com
Thu Jul 22 04:03:10 PDT 2021


From: Yoray Zack <yorayz at nvidia.com>

Signed-off-by: Yoray Zack <yorayz at nvidia.com>
---
 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




More information about the Linux-nvme mailing list