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 EC685A0350 for ; Fri, 29 May 2020 19:11:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 779911DA22; Fri, 29 May 2020 19:11:37 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 9BD831DA22 for ; Fri, 29 May 2020 19:11:36 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id v19so4311695wmj.0 for ; Fri, 29 May 2020 10:11: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=1et67rOzzpWO5Y2+FZuQ3YtYev2Tn9UBGzUSioobL9s=; b=mWiR22trhdTCe4whhQzwhzsDjj7ByCseJ2XiJiYm200cc1bh+rc3xO2fNmlE37/sL3 54xaRnz/ZgMG7lnb3ADdaogThQOUTmpmWmZAy3KiX+0ni7FX9+4IKETMm0PThvQ9CV2g jDFv44gDA6CUb0VYx/Z+ekr80ne2CsQTYpvZbEs1ANnekd7anfEgxdW5x6TjEFyUjAqE ehcgsyf0CmX21r6KuugOW60bW2SPXEsynR1bV2Mn9+6JCoXpMegd80JnSAlgqyRB4gZa gYKF3/4F56SZ0e+Uds6NcmjI7qwmfEJIM+6DxdWeYUpV3L36iYt03w2Ql4gqj01VWUcs Cj7Q== X-Gm-Message-State: AOAM531m4/4l7R3XBk8qHlr4Vrms4TChnBdDkw3MOwdNl8n75b2TOVaS 20Hp8zXw6ZUBis7KG9ETLnla7y2wJBQ= X-Google-Smtp-Source: ABdhPJxsJglK4xl01FF5eTVNfI6h0YKltUEhd3m9cwxaKD27x2USUrXAqOxXaG0yvAfjiYqIguwHcA== X-Received: by 2002:a1c:2dc7:: with SMTP id t190mr8966966wmt.129.1590772296129; Fri, 29 May 2020 10:11:36 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:7a8e:ed70:5c52:ea3]) by smtp.gmail.com with ESMTPSA id k16sm9032407wrp.66.2020.05.29.10.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 10:11:35 -0700 (PDT) Message-ID: <423a7c1ebcb83f3471d87bd778e463b19d0ae3cb.camel@debian.org> From: Luca Boccassi To: Michal Krawczyk , stable@dpdk.org Date: Fri, 29 May 2020 18:11:34 +0100 In-Reply-To: <20200529104604.28836-1-mk@semihalf.com> References: <20200529104604.28836-1-mk@semihalf.com> 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/ena/base: fix testing for supported hash function 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 Fri, 2020-05-29 at 12:46 +0200, Michal Krawczyk wrote: > [ upstream commit 6e585db68903b9ef8e0a547efc8f3e71af424397 ] >=20 > There was a bug in ena_com_fill_hash_function(), which was causing bit to > be shifted left one bit too much. >=20 > To fix that, the ENA_FFS macro is being used (returning the location of > the first bit set), hash_function value is being subtracted by 1 if any > hash function is supported by the device and BIT macro is used for > shifting for better verbosity. >=20 > Fixes: 99ecfbf845b3 ("ena: import communication layer") >=20 > Signed-off-by: Michal Krawczyk > --- > drivers/net/ena/base/ena_com.c | 22 +++++++++++++++------- > drivers/net/ena/base/ena_plat_dpdk.h | 2 ++ > 2 files changed, 17 insertions(+), 7 deletions(-) Acked-By: Luca Boccassi Thanks, applied.