]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: RX, Remove unnecessary check in RX CQE compression handling
authorTariq Toukan <tariqt@nvidia.com>
Thu, 22 Apr 2021 15:34:57 +0000 (18:34 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:36 +0000 (11:54 -0700)
commit1bc594589fe3234b107518c25de9ba0116f708a6
tree8cb9b5af493641c45bdcf95426608f67d7c7cce1
parent8a489d8ea77a987580f843a908e4979876f76045
net/mlx5e: RX, Remove unnecessary check in RX CQE compression handling

There are two reasons for exiting mlx5e_decompress_cqes_cont():
1. The compression session is completed (cqd.left == 0).
2. The budget is exhausted (work_done == budget).

If after calling mlx5e_decompress_cqes_cont() we have cqd.left > 0,
it necessarily implies that budget is exhausted.

The first part of the complex condition is covered by the second,
hence we remove it here.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c