]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TX, Error completion is for last WQE in batch
authorTariq Toukan <tariqt@mellanox.com>
Thu, 9 Jan 2020 13:53:37 +0000 (15:53 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Feb 2020 20:24:23 +0000 (12:24 -0800)
commit2d655e6123a543bb4020492edd12fe1c82e50ed4
tree766008b91d2806780a667d926c116a54d5744b19
parent4bdcbdab5854a889aaa4ee567a289e2ebee90d48
net/mlx5e: TX, Error completion is for last WQE in batch

For a cyclic work queue, when not requesting a completion per WQE,
a single CQE might indicate the completion of several WQEs.
However, in case some WQE in the batch causes an error, then an error
completion is issued, breaking the batch, and pointing to the offending
WQE in the wqe_counter field.

Hence, WQE-specific error CQE handling (like printing, breaking, etc...)
should be performed only for the last WQE in batch.

Fixes: 4e23b5774fd3 ("net/mlx5e: TX, Dump WQs wqe descriptors on CQE with error events")
Fixes: dac7cd4f84ae ("net/mlx5e: RX, Support multiple outstanding UMR posts")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c