There are two capabilities related to CRC stripping: 1. mlx4 HW capability to perform CRC stripping on a received packet. This capability is built in mlx4 HW. It should be returned by the API call mlx4_get_rx_queue_offloads(). 2. mlx4 driver capability to enable/disable HW CRC stripping. This capability is dependent on the driver version. Before this commit the second capability was falsely returned by the mentioned API. This commit fixes it by returning the first capability. mlx4 HW performs CRC stripping by default and this capability is always reported as "true". The ability to enable/disable CRC stripping is supported since this commit and requires OFED version 4.3-1.5.0.0 or rdma-core version v18. CRC stripping will be done by default regardless of its configuration when working with OFED or rdma-core versions earlier than those previously specified or before this commit. Fixes: de1df14e6e6ec ("net/mlx4: support CRC strip toggling") Cc: stable@dpdk.org Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%