net/mlx5: optimize Rx queue match
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 13 Jul 2021 08:44:59 +0000 (11:44 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 14:09:23 +0000 (16:09 +0200)
commita5835d530f00cb2b517abfeeec9b9c0fcd085f55
tree53a2c72b32a3286a2cbf29f104329aa1e98ba742
parentcde19e86349fff9e6a02a509dea672d06b87a49b
net/mlx5: optimize Rx queue match

As hrxq struct has the indirect table pointer, while matching the
hrxq, better to use the hrxq indirect table instead of searching
from the list.

This commit optimizes the hrxq indirect table matching.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c