]> git.droids-corp.org - dpdk.git/commit
net/mlx5: remove redundant check for hairpin queue
authorMichael Baum <michaelba@nvidia.com>
Sun, 10 Apr 2022 09:25:28 +0000 (12:25 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 21 Apr 2022 10:47:41 +0000 (12:47 +0200)
commitd37b0b4d7710692919092c36ce7a0b74b0f20182
tree2a9250cb147a62657c7d6df5aefe3884f6df9e6a
parent1573b07284caf92cad5479b539213c508d5583a6
net/mlx5: remove redundant check for hairpin queue

The mlx5_rxq_is_hairpin() function checks whether RxQ type is Hairpin.
It is done by reading a flag in Rx control structure coming from
mlx5_rxq_ctrl_get() function.

The function verifies that the queue index is valid even though it has
been checked within the mlx5_rxq_ctrl_get() function.

This patch removes the redundant check.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c