net/mlx5: fix hairpin dependency on destination DevX TIR
authorMichael Baum <michaelba@nvidia.com>
Sun, 13 Sep 2020 19:05:22 +0000 (19:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:11 +0000 (18:55 +0200)
commitb00f760354db0fd09f58bf6fb59972d50e772676
tree55962883267f664369cc4acd65aa19aebf420365
parent7aa9892f797f3b04c30e277adf5af8c8774493c8
net/mlx5: fix hairpin dependency on destination DevX TIR

The PMD supports hairpin only if DevX is supported and DV flow is
enabled.

When destination DevX TIR is not supported, the PMD tries to create TIR
action, and fails.

Avoid supporting hairpin when destination DevX TIR is not supported.

Fixes: b6b3bf86bd1a ("net/mlx5: get hairpin capabilities")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_ethdev.c