Subject: [PATCH v5 net-next 29/36] mlx5: Add support to NETIF_F_HW_TCP_DDP_CRC_TX feature

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

From: Yoray Zack <[email-masked]>

Signed-off-by: Yoray Zack <[email-masked]>
---
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/nvmeotcp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/nvmeotcp.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/nvmeotcp.c
index 7f6607cac9fb..db6ca734d129 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/nvmeotcp.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/nvmeotcp.c
@@ -961,6 +961,11 @@ void mlx5e_nvmeotcp_build_netdev(struct mlx5e_priv *priv)
 		netdev->hw_features |= NETIF_F_HW_ULP_DDP;
 	}
 
+	if (MLX5_CAP_DEV_NVMEOTCP(priv->mdev, crc_tx)) {
+		netdev->features |= NETIF_F_HW_ULP_DDP;
+		netdev->hw_features |= NETIF_F_HW_ULP_DDP;
+	}
+
 	netdev->ulp_ddp_ops = &mlx5e_nvmeotcp_ops;
 }
 
-- 
2.24.1