[dpdk-stable] [PATCH 19.11] net/ena/base: fix testing for supported hash function

Luca Boccassi bluca at debian.org
Fri May 29 19:11:34 CEST 2020


On Fri, 2020-05-29 at 12:46 +0200, Michal Krawczyk wrote:
> [ upstream commit 6e585db68903b9ef8e0a547efc8f3e71af424397 ]
> 
> There was a bug in ena_com_fill_hash_function(), which was causing bit to
> be shifted left one bit too much.
> 
> 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.
> 
> Fixes: 99ecfbf845b3 ("ena: import communication layer")
> 
> Signed-off-by: Michal Krawczyk <mk at semihalf.com>
> ---
>  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 <bluca at debian.org>

Thanks, applied.


More information about the stable mailing list