net/mlx5: fix setting of Rx hash fields
authorDekel Peled <dekelp@mellanox.com>
Wed, 18 Dec 2019 10:05:46 +0000 (12:05 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commitc3e33304a7f6f51f49904faf27be768a59c18553
treee738736e3158268aa3b336f4924cf447cd39a147
parent3d491dd6f2cdf3a75f46ceddf75c5593d43b9c60
net/mlx5: fix setting of Rx hash fields

Rx hash fields were copied from input parameter into TIR attributes
directly, with no translation. As result the copied value was wrong.

This patch adds translation of value from input bitmap to the
appropriate format.

Fixes: dc9ceff73c99 ("net/mlx5: create advanced RxQ via DevX")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_rxq.c