From: Tal Shnaiderman Date: Tue, 12 Oct 2021 12:45:53 +0000 (+0300) Subject: net/mlx5: support keeping CRC on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c8834a3663b7ff3269a1b4e6a2772999dd485760;p=dpdk.git net/mlx5: support keeping CRC on Windows 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 Acked-by: Matan Azrad Tested-by: Idan Hackmon --- diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index ed652d3d2d..a7baa78c00 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -123,7 +123,7 @@ New Features Updated the Mellanox mlx5 driver with new features and improvements, including: * Added implicit mempool registration to avoid data path hiccups (opt-out). - * Added NIC offloads for the PMD on Windows (TSO, VLAN strip). + * Added NIC offloads for the PMD on Windows (TSO, VLAN strip, CRC keep). * **Updated Solarflare network PMD.** diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c index a000ed14cf..4ecf018267 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)];