]> git.hungrycats.org Git - linux/commit
net: ena: Fix toeplitz initial hash value
authorDavid Arinzon <darinzon@amazon.com>
Thu, 29 Dec 2022 07:30:05 +0000 (07:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:37 +0000 (12:00 +0100)
commite67f558199918d1867a5d4c0b1f8e8361938be2f
tree7f05c0f73ade1701d1fce1670a94d9d5dff50b56
parentb95a65a7264437bb75de351abe1a2066a554205c
net: ena: Fix toeplitz initial hash value

[ Upstream commit 332b49ff637d6c1a75b971022a8b992cf3c57db1 ]

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: 91a65b7d3ed8 ("net: ena: fix potential crash when rxfh key is NULL")
Signed-off-by: Nati Koler <nkoler@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amazon/ena/ena_com.c