]> 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)
commitf0e4e549e00558ed661734505db59c322d0de291
tree766008b91d2806780a667d926c116a54d5744b19
parentb1f6c27bd57d21ef043097246c3e6cefc5adad67
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: 2a06cd893160 ("net/mlx5e: TX, Dump WQs wqe descriptors on CQE with error events")
Fixes: c4692f272525 ("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