]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix setting flags to external Rx queue
authorMichael Baum <michaelba@nvidia.com>
Sun, 10 Apr 2022 09:25:26 +0000 (12:25 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 21 Apr 2022 10:47:40 +0000 (12:47 +0200)
commit1b0037b1cb287cd4cc215b2d0fc974e5188a6959
tree72842eae8deb0dcf7992e50be8db7ca5db165e57
parent4fa1452bcaa452f7fa0214b78a2e0e2032deed40
net/mlx5: fix setting flags to external Rx queue

The flow_drv_rxq_flags_set sets the Rx queue flags (Mark/Flag and Tunnel
Ptypes) according to the device flow.

It tries to get the RxQ control structure to update its ptype. However,
external RxQs don't have control structure to update and it may cause a
crash.

This patch add check whether this Queue is external.

Fixes: 311b17e669ab ("net/mlx5: support queue/RSS actions for external Rx queue")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c