diff mbox series

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

Message ID 20210722110325.371-22-borisp@nvidia.com
State New
Headers show
Series nvme-tcp receive and tarnsmit offloads | expand

Commit Message

Boris Pismenny July 22, 2021, 11:03 a.m. UTC
From: Yoray Zack <yorayz@nvidia.com>

Signed-off-by: Yoray Zack <yorayz@nvidia.com>
---
 net/core/dev.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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;
 		}
 	}