net/mlx5: fix flow tag decompression
authorAlexander Kozyrev <akozyrev@nvidia.com>
Thu, 14 Jan 2021 21:32:19 +0000 (21:32 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:08 +0000 (18:16 +0100)
commitbd0940a5c4df6a79595adac39959ab8b578ec3a9
tree36d5ba9f22bbe75effe35ad1f1208aec6a1bac0a
parent49be011d3c87fd1b5d5d791744e9d969dff26bc1
net/mlx5: fix flow tag decompression

Packets can get a wrong Flow Tag on x86 architecture with the Flow Tag
compression format (rxq_cqe_comp_en=2) enabled inside the SSE Rx burst.
The shuffle mask that extracts a Flow Tag from the pair of compressed
CQEs is reversed. This leads to the wrong Flow Tag assignment.
Correct the shuffle mask to get proper bytes for a Flow Tag from
miniCQEs.

Fixes: 54c2d46b160f ("net/mlx5: support flow tag and packet header miniCQEs")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxtx_vec_sse.h