Skip to content
Commit e67f5581 authored by David Arinzon's avatar David Arinzon Committed by Greg Kroah-Hartman
Browse files

net: ena: Fix toeplitz initial hash value

[ Upstream commit 332b49ff ]

On driver initialization, RSS hash initial value is set to zero,
instead of the default value. This happens because we pass NULL as
the RSS key parameter, which caused us to never initialize
the RSS hash value.

This patch fixes it by making sure the initial value is set, no matter
what the value of the RSS key is.

Fixes: 91a65b7d

 ("net: ena: fix potential crash when rxfh key is NULL")
Signed-off-by: default avatarNati Koler <nkoler@amazon.com>
Signed-off-by: default avatarDavid Arinzon <darinzon@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b95a65a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment