numam-dpdk/drivers/vdpa
Dekel Peled a4e6ea97a5 common/mlx5: fix RSS key copy to TIR context
In function mlx5_devx_cmd_create_tir(), the 40 bytes of RSS key are
copied in 10 iterations, 4 bytes each time using the MLX5_SET macro.
As result the RSS key is copied into TIR context in swapped byte order.
This patch fixes the issue, using memcpy() to copy the RSS key as is.
The struct member mlx5_devx_tir_attr.rx_hash_toeplitz_key is updated
to byte array type.

Fixes: c3aea272ee ("net/mlx5: create advanced Rx object via DevX")
Cc: stable@dpdk.org

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-04-21 13:57:05 +02:00
..
ifc replace packed attributes 2020-04-16 18:16:46 +02:00
mlx5 common/mlx5: fix RSS key copy to TIR context 2020-04-21 13:57:05 +02:00
Makefile vdpa/mlx5: introduce Mellanox vDPA driver 2020-02-05 09:51:21 +01:00
meson.build vdpa/mlx5: introduce Mellanox vDPA driver 2020-02-05 09:51:21 +01:00