diff options
author | 2022-06-08 18:38:37 +0300 | |
---|---|---|
committer | 2022-08-22 12:57:08 -0700 | |
commit | 7b3707fc79044871ab8f3d5fa5e9603155bb5577 (patch) | |
tree | b78d89428a315384ac20a8e609180f40890016fb /lib/mpi/mpi-bit.c | |
parent | net/mlx5: Avoid false positive lockdep warning by adding lock_class_key (diff) | |
download | wireguard-linux-7b3707fc79044871ab8f3d5fa5e9603155bb5577.tar.xz wireguard-linux-7b3707fc79044871ab8f3d5fa5e9603155bb5577.zip |
net/mlx5e: Fix wrong application of the LRO state
Driver caches packet merge type in mlx5e_params instance which must be
in perfect sync with the netdev_feature's bit.
Prior to this patch, in certain conditions (*) LRO state was set in
mlx5e_params, while netdev_feature's bit was off. Causing the LRO to
be applied on the RQs (HW level).
(*) This can happen only on profile init (mlx5e_build_nic_params()),
when RQ expect non-linear SKB and PCI is fast enough in comparison to
link width.
Solution: remove setting of packet merge type from
mlx5e_build_nic_params() as netdev features are not updated.
Fixes: 619a8f2a42f1 ("net/mlx5e: Use linear SKB in Striding RQ")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions