[dpdk-stable] [PATCH 19.11] net/mlx5: fix RSS key copy to TIR context

Luca Boccassi bluca at debian.org
Mon Jun 1 12:08:34 CEST 2020


On Sun, 2020-05-31 at 17:23 +0300, Dekel Peled wrote:
> [ upstream commit a4e6ea97a5212f5b59cc65a1293ad23e67ade8fc ]
> 
> 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: c3aea272eed8 ("net/mlx5: create advanced Rx object via DevX")
> 
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> ---
>  drivers/net/mlx5/mlx5.h           | 2 +-
>  drivers/net/mlx5/mlx5_devx_cmds.c | 9 +++------
>  drivers/net/mlx5/mlx5_rxq.c       | 3 ++-
>  3 files changed, 6 insertions(+), 8 deletions(-)

Thanks, applied.

-- 
Kind regards,
Luca Boccassi


More information about the stable mailing list