]> git.droids-corp.org - dpdk.git/commit
net/mlx5: optimize queue type checks
authorMichael Baum <michaelba@nvidia.com>
Thu, 24 Feb 2022 23:25:09 +0000 (01:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 25 Feb 2022 16:33:31 +0000 (17:33 +0100)
commitc06f77aecee404c4bfb43a6e6c5f1f4949ca4264
treea48bfce574858037b63e5ec9f7e5f918b2b64f48
parent9d936f4f1a5e5b18d3d4582ebb1a0d3a638826b4
net/mlx5: optimize queue type checks

The RxQ/TxQ control structure has a field named type. This type is enum
with values for standard and hairpin.
The use of this field is to check whether the queue is of the hairpin
type or standard.

This patch replaces it with a boolean variable that saves whether it is
a hairpin.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_devx.c
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_rx.h
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_trigger.c
drivers/net/mlx5/mlx5_tx.h
drivers/net/mlx5/mlx5_txq.c