[dpdk-dev] [PATCH v2 12/13] net/mlx5: support keep-CRC offload on Windows

Tal Shnaiderman talshn at nvidia.com
Tue Oct 12 14:45:53 CEST 2021


Support of the keep-CRC offloading by checking
the relevant FW capability (scatter_fcs) for NIC support.

Supported offload:

DEV_RX_OFFLOAD_KEEP_CRC

Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
Acked-by: Matan Azrad <matan at nvidia.com>
Tested-by: Idan Hackmon <idanhac at nvidia.com>
---
 drivers/net/mlx5/windows/mlx5_os.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c
index 5b941cdb19..896b6896b7 100644
--- a/drivers/net/mlx5/windows/mlx5_os.c
+++ b/drivers/net/mlx5/windows/mlx5_os.c
@@ -525,6 +525,7 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
 		config->hw_vlan_strip = config->hca_attr.vlan_cap;
 		DRV_LOG(DEBUG, "VLAN stripping is %ssupported",
 			(config->hw_vlan_strip ? "" : "not "));
+		config->hw_fcs_strip = config->hca_attr.scatter_fcs;
 	}
 	if (config->devx) {
 		uint32_t reg[MLX5_ST_SZ_DW(register_mtutc)];
-- 
2.16.1.windows.4



More information about the dev mailing list