From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7F10BA04EF for ; Mon, 1 Jun 2020 12:08:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E44DD1C0CE; Mon, 1 Jun 2020 12:08:36 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 09D921C0CE for ; Mon, 1 Jun 2020 12:08:36 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id j10so10853064wrw.8 for ; Mon, 01 Jun 2020 03:08:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=enWIi38ErFlGvn/KIAyXQTsektfY7/2fI9zHBR5pMtc=; b=cRI1557SoyEuvidrtehTREpyldQGA10OqkxUwQNWCZxXoqbDDnNCtb72m1v50nOKa8 EEw79bsWSJ0Az4zTSXbtYZQX2scVqej+Y3kpwWN4DaDFWihqj5xt7br93hNYNwyz+3UW KaAFjHid3NK4qBgztgwAnvjlfvkYrMXWvdP5YmNo5AKQ7lTWdTHx6jjyasydMEUyfTfE 7Mt1sFElpTsYe2RCU1EYZdjYHlaBls/57vERySxfUZ7SzSG9TjgJVK+wA/oOFU+AOdki 7UcD//20BpWfPNGsdB5oRJT9ZpB3+i0wtx2zjlAwhX7LwFyoaQ5Y7f0040rUsfinTy/H CPTQ== X-Gm-Message-State: AOAM533Diat3mNXN34QGffrRe7wlLtoMqNK/x1etVn9pVdw1MuM+SX97 GZE8EOKTFZKo1lC7ittRMysMmtD0DAk= X-Google-Smtp-Source: ABdhPJwNb1wpIVGAITpbs+AGxyaogU2kXNqy5YvZ7GtFn5tbKvf3+XImLLs7wNVWbUrCAO6hNnVK2A== X-Received: by 2002:a5d:4042:: with SMTP id w2mr22281305wrp.423.1591006115771; Mon, 01 Jun 2020 03:08:35 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id y37sm24313253wrd.55.2020.06.01.03.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 03:08:35 -0700 (PDT) Message-ID: From: Luca Boccassi To: Dekel Peled , stable@dpdk.org Date: Mon, 01 Jun 2020 11:08:34 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH 19.11] net/mlx5: fix RSS key copy to TIR context X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Sun, 2020-05-31 at 17:23 +0300, Dekel Peled wrote: > [ upstream commit a4e6ea97a5212f5b59cc65a1293ad23e67ade8fc ] >=20 > 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. >=20 > Fixes: c3aea272eed8 ("net/mlx5: create advanced Rx object via DevX") >=20 > Signed-off-by: Dekel Peled > Acked-by: Matan Azrad > --- > 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. --=20 Kind regards, Luca Boccassi