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@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Tested-by: Idan Hackmon <idanhac@nvidia.com>
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.**
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)];